mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-29 15:29:32 +01:00
IRCHandlers: remove trailing space when setting mode without target
This commit is contained in:
parent
2c9f805f4d
commit
61f13f6b40
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user