diff options
author | Yorhel <git@yorhel.nl> | 2009-08-09 15:12:27 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-08-09 15:12:27 +0200 |
commit | 87b80e878f3cc068099c036ec04863c38eaad600 (patch) | |
tree | aa05ade44956d88c79e280ac98c0ea47ea016104 /lib/Multi/IRC.pm | |
parent | 500a9c017f3d033fa4eaa336c5d116bcbe31cf70 (diff) |
Multi::IRC: Got rid of crash in the throttle function
Diffstat (limited to 'lib/Multi/IRC.pm')
-rw-r--r-- | lib/Multi/IRC.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Multi/IRC.pm b/lib/Multi/IRC.pm index 63acd0a9..e18a8e5d 100644 --- a/lib/Multi/IRC.pm +++ b/lib/Multi/IRC.pm @@ -96,7 +96,7 @@ sub throttle { # garbage collect return ($heap->{throttle} = { - map $_->[$#$_] > time-3600 ? ($_, $heap->{throttle}{$_}) : (), keys %{$heap->{throttle}} + map $heap->{throttle}{$_}[$#{$heap->{throttle}{$_}}] > time-3600 ? ($_, $heap->{throttle}{$_}) : (), keys %{$heap->{throttle}} }) if !$key; $num ||= 1; |