3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-22 20:09:43 +01:00

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

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