mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 22:09:26 +01:00
Missing hash dereference
This commit is contained in:
parent
6fbd6d5620
commit
4ed61096dd
@ -55,10 +55,10 @@ sub remove {
|
|||||||
|
|
||||||
if (exists $self->{blacklist}->{$channel}) {
|
if (exists $self->{blacklist}->{$channel}) {
|
||||||
delete $self->{blacklist}->{$channel}->{$hostmask};
|
delete $self->{blacklist}->{$channel}->{$hostmask};
|
||||||
}
|
|
||||||
|
|
||||||
if (keys $self->{blacklist}->{$channel} == 0) {
|
if (keys %{ $self->{blacklist}->{$channel} } == 0) {
|
||||||
delete $self->{blacklist}->{$channel};
|
delete $self->{blacklist}->{$channel};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$self->save_blacklist();
|
$self->save_blacklist();
|
||||||
|
Loading…
Reference in New Issue
Block a user