Remove mute from mute-timeouts if -q is detected

This commit is contained in:
Pragmatic Software 2015-05-27 11:26:16 -07:00
parent e835b8c667
commit b087324a37
1 changed files with 5 additions and 0 deletions

View File

@ -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");
}