3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-26 20:52:37 +01:00

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

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