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:
parent
b24cd5b238
commit
dc7406ccb8
@ -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;
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user