3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

Fix case-sensitivity to show QUIT messages properly

This commit is contained in:
Pragmatic Software 2014-09-09 07:19:10 +00:00
parent d40361a2bf
commit 83af062376
2 changed files with 4 additions and 4 deletions

View File

@ -184,7 +184,7 @@ sub check_flood {
my $account = $self->{pbot}->{messagehistory}->get_message_account($nick, $user, $host);
if($mode == $self->{pbot}->{messagehistory}->{MSG_NICKCHANGE}) {
$self->{pbot}->{logger}->log(sprintf("%-14s | %-65s | %s\n", "NICKCHANGE", $mask, $text));
$self->{pbot}->{logger}->log(sprintf("%-18s | %-65s | %s\n", "NICKCHANGE", $mask, $text));
my ($newnick) = $text =~ m/NICKCHANGE (.*)/;
if($newnick =~ m/^Guest\d+$/) {
@ -197,7 +197,7 @@ sub check_flood {
$self->{nickflood}->{$account}->{changes}++;
}
} else {
$self->{pbot}->{logger}->log(sprintf("%-14s | %-65s | %s\n", $channel eq $mask ? "QUIT" : $channel, $mask, $text));
$self->{pbot}->{logger}->log(sprintf("%-18s | %-65s | %s\n", lc $channel eq lc $mask ? "QUIT" : $channel, $mask, $text));
}
# handle QUIT events

View File

@ -13,8 +13,8 @@ use warnings;
# These are set automatically by the build/commit script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 783,
BUILD_DATE => "2014-08-31",
BUILD_REVISION => 784,
BUILD_DATE => "2014-09-09",
};
1;