mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 12:32:37 +01:00
IRCHandlers: cleaned up mode log output
This commit is contained in:
parent
47687f9e4f
commit
2c9f805f4d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user