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}; }