From a24ddd765d20b71bf105f7ee0d04290a057db838 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 1 Feb 2020 20:51:45 -0800 Subject: [PATCH] Factoids: fix minor issue with factrem --- PBot/Factoids.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBot/Factoids.pm b/PBot/Factoids.pm index ec1a1eed..f93ea5ef 100644 --- a/PBot/Factoids.pm +++ b/PBot/Factoids.pm @@ -130,7 +130,7 @@ sub remove_factoid { delete $self->{factoids}->{hash}->{$channel}->{$trigger}; - if (not scalar keys %{ $self->{factoids}->{hash}->{$channel} }) { + if (scalar keys %{ $self->{factoids}->{hash}->{$channel} } == 1) { delete $self->{factoids}->{hash}->{$channel}; }