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

IRCHandlers: remove trailing space when setting mode without target

This commit is contained in:
Pragmatic Software 2020-02-05 01:41:09 -08:00
parent 2c9f805f4d
commit 61f13f6b40

View File

@ -243,7 +243,7 @@ sub on_mode {
$mode_char = $char;
$target = $event->{event}->{args}[++$i];
$self->{pbot}->{logger}->log("Mode $channel [$mode $target] by $nick!$user\@$host\n");
$self->{pbot}->{logger}->log("Mode $channel [$mode" . (length $target ? " $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);