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

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