3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-01-03 16:42:38 +01: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; $self->{last_timestamp}->{$channel} = $now;
} elsif($now - $self->{last_timestamp}->{$channel} >= 30) { } elsif($now - $self->{last_timestamp}->{$channel} >= 30) {
$self->{last_timestamp}->{$channel} = $now; $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; $self->{ignore_flood_counter}->{$channel} = 0;
$pbot->logger->log("flood_msg reset\n"); $pbot->logger->log("flood_msg reset\n");
} }