mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 22:09:26 +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};
|
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};
|
delete $self->{factoids}->{hash}->{$channel};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user