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:
parent
f173b43c8d
commit
a24ddd765d
@ -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};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user