From 4ed61096dd2887cbfc1aa1d503823aa6edd4d846 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Fri, 4 Nov 2016 12:40:17 -0700 Subject: [PATCH] Missing hash dereference --- PBot/BlackList.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PBot/BlackList.pm b/PBot/BlackList.pm index 904eee60..a0135a8c 100644 --- a/PBot/BlackList.pm +++ b/PBot/BlackList.pm @@ -55,10 +55,10 @@ sub remove { if (exists $self->{blacklist}->{$channel}) { delete $self->{blacklist}->{$channel}->{$hostmask}; - } - if (keys $self->{blacklist}->{$channel} == 0) { - delete $self->{blacklist}->{$channel}; + if (keys %{ $self->{blacklist}->{$channel} } == 0) { + delete $self->{blacklist}->{$channel}; + } } $self->save_blacklist();