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

Resolve "use of uninitialized value in numeric gt" in IgnoreList.pm

This commit is contained in:
Pragmatic Software 2010-06-04 04:44:08 +00:00
parent 41bd599228
commit bfbc663622

View File

@ -153,7 +153,7 @@ sub check_ignore {
$self->{last_timestamp}->{$channel} = $now;
} elsif($now - $self->{last_timestamp}->{$channel} >= 30) {
$self->{last_timestamp}->{$channel} = $now;
if($self->{ignore_flood_counter}->{$channel} > 0) {
if(exists $self->{ignore_flood_counter}->{$channel} and $self->{ignore_flood_counter}->{$channel} > 0) {
$self->{ignore_flood_counter}->{$channel} = 0;
$pbot->logger->log("flood_msg reset\n");
}