From b087324a374e5b7a4b443ef96df68fbb8af81c1d Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Wed, 27 May 2015 11:26:16 -0700 Subject: [PATCH] Remove mute from mute-timeouts if -q is detected --- PBot/BanTracker.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PBot/BanTracker.pm b/PBot/BanTracker.pm index d75a1e77..75bcea51 100644 --- a/PBot/BanTracker.pm +++ b/PBot/BanTracker.pm @@ -157,6 +157,11 @@ sub track_mode { $self->{pbot}->{chanops}->{unban_timeout}->remove($channel, "$target\$##stop_join_flood"); } } + elsif($mode eq "-q") { + if($self->{pbot}->{chanops}->{unmute_timeout}->find_index($channel, $target)) { + $self->{pbot}->{chanops}->{unmute_timeout}->remove($channel, $target); + } + } } else { $self->{pbot}->{logger}->log("BanTracker: Unknown mode '$mode'\n"); }