3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 03:33:06 +01:00

Don't use keys on scalar

This commit is contained in:
Pragmatic Software 2017-08-05 20:10:54 -07:00
parent 62de9fd223
commit aa65839827

View File

@ -702,7 +702,7 @@ sub unbanme {
my $channels_disabled = '';
my $sep_disabled = '';
foreach my $channel (keys %$unbanned) {
foreach my $mask (keys $unbanned->{$channel}) {
foreach my $mask (keys %{ $unbanned->{$channel} }) {
if ($self->{pbot}->{channels}->is_active_op("${channel}-floodbans")) {
if ($unbanned->{$channel}->{$mask} <= 2) {