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

Corrected non-array-ref issue in check_message_history_timeout subroutine

This commit is contained in:
Pragmatic Software 2009-12-09 01:12:36 +00:00
parent 73b793295b
commit e706505921

View File

@ -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) {