3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-23 04:19:27 +01:00

Fix a couple of keys on scalar

This commit is contained in:
Pragmatic Software 2017-08-09 01:22:13 -07:00
parent b24cd5b238
commit dc7406ccb8
2 changed files with 2 additions and 2 deletions

View File

@ -324,7 +324,7 @@ sub check_unban_queue {
last if $count >= $self->{pbot}->{ircd}->{MODES};
}
if (not keys $self->{unban_queue}->{$channel}) {
if (not keys %{ $self->{unban_queue}->{$channel} }) {
delete $self->{unban_queue}->{$channel};
$done = 1;
}

View File

@ -156,7 +156,7 @@ sub adjust_offenses {
if ($self->{offenses}->{$account}->{$channel}->{offenses} <= 0) {
delete $self->{offenses}->{$account}->{$channel};
if (keys $self->{offenses}->{$account} == 0) {
if (keys %{ $self->{offenses}->{$account} } == 0) {
delete $self->{offenses}->{$account};
}
} else {