3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-04 18:38:47 +02:00

IRCHandlers: cleaned up mode log output

This commit is contained in:
Pragmatic Software 2020-02-05 01:26:22 -08:00
parent 47687f9e4f
commit 2c9f805f4d

View File

@ -243,7 +243,7 @@ sub on_mode {
$mode_char = $char;
$target = $event->{event}->{args}[++$i];
$self->{pbot}->{logger}->log("Got mode: source: $nick!$user\@$host, mode: $mode, target: " . (defined $target ? $target : "(undef)") . ", channel: $channel\n");
$self->{pbot}->{logger}->log("Mode $channel [$mode $target] by $nick!$user\@$host\n");
if ($mode eq "-b" or $mode eq "+b" or $mode eq "-q" or $mode eq "+q") {
$self->{pbot}->{bantracker}->track_mode("$nick!$user\@$host", $mode, $target, $channel);