Factoids: fix minor issue with factrem

This commit is contained in:
Pragmatic Software 2020-02-01 20:51:45 -08:00
parent f173b43c8d
commit a24ddd765d
1 changed files with 1 additions and 1 deletions

View File

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