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
1 changed files with 1 additions and 1 deletions

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