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

Missing hash dereference

This commit is contained in:
Pragmatic Software 2016-11-04 12:40:17 -07:00
parent 6fbd6d5620
commit 4ed61096dd

View File

@ -55,11 +55,11 @@ sub remove {
if (exists $self->{blacklist}->{$channel}) {
delete $self->{blacklist}->{$channel}->{$hostmask};
}
if (keys $self->{blacklist}->{$channel} == 0) {
if (keys %{ $self->{blacklist}->{$channel} } == 0) {
delete $self->{blacklist}->{$channel};
}
}
$self->save_blacklist();
}