mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-29 15:29:32 +01:00
Corrected non-array-ref issue in check_message_history_timeout subroutine
This commit is contained in:
parent
73b793295b
commit
e706505921
2
pbot2.pl
2
pbot2.pl
@ -1666,7 +1666,7 @@ BEGIN {
|
||||
foreach my $channel (keys %{ $flood_watch{$nick} })
|
||||
{
|
||||
plog "Checking [$nick][$channel]\n";
|
||||
my $length = $#{ $flood_watch{$nick}{$channel} } + 1;
|
||||
my $length = $#{ $flood_watch{$nick}{$channel}{messages} } + 1;
|
||||
my %last = %{ @{ $flood_watch{$nick}{$channel}{messages} }[$length - 1] };
|
||||
|
||||
if($now - $last{timestamp} >= 60 * 60 * 24) {
|
||||
|
Loading…
Reference in New Issue
Block a user