mirror of
https://github.com/pragma-/pbot.git
synced 2025-10-16 07:57:31 +02:00
Fix case-sensitivity to show QUIT messages properly
This commit is contained in:
parent
d40361a2bf
commit
83af062376
@ -184,7 +184,7 @@ sub check_flood {
|
|||||||
my $account = $self->{pbot}->{messagehistory}->get_message_account($nick, $user, $host);
|
my $account = $self->{pbot}->{messagehistory}->get_message_account($nick, $user, $host);
|
||||||
|
|
||||||
if($mode == $self->{pbot}->{messagehistory}->{MSG_NICKCHANGE}) {
|
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 (.*)/;
|
my ($newnick) = $text =~ m/NICKCHANGE (.*)/;
|
||||||
if($newnick =~ m/^Guest\d+$/) {
|
if($newnick =~ m/^Guest\d+$/) {
|
||||||
@ -197,7 +197,7 @@ sub check_flood {
|
|||||||
$self->{nickflood}->{$account}->{changes}++;
|
$self->{nickflood}->{$account}->{changes}++;
|
||||||
}
|
}
|
||||||
} else {
|
} 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
|
# handle QUIT events
|
||||||
|
@ -13,8 +13,8 @@ use warnings;
|
|||||||
# These are set automatically by the build/commit script
|
# These are set automatically by the build/commit script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 783,
|
BUILD_REVISION => 784,
|
||||||
BUILD_DATE => "2014-08-31",
|
BUILD_DATE => "2014-09-09",
|
||||||
};
|
};
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user