mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 19:52:34 +01:00
Factoids: fix minor issue with factadd
This commit is contained in:
parent
1c43699e6d
commit
f173b43c8d
@ -95,7 +95,7 @@ sub add_factoid {
|
||||
|
||||
my $data;
|
||||
|
||||
if (exists $self->{factoids}->{hash}->{lc $channel}->{lc $trigger}) {
|
||||
if (exists $self->{factoids}->{hash}->{lc $channel} and exists $self->{factoids}->{hash}->{lc $channel}->{lc $trigger}) {
|
||||
# only update action field if force-adding it through factadd -f
|
||||
$data = $self->{factoids}->{hash}->{lc $channel}->{lc $trigger};
|
||||
$data->{action} = $action;
|
||||
|
Loading…
Reference in New Issue
Block a user