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:
parent
41bd599228
commit
bfbc663622
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user