3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

Factoids: fix minor issue with factadd

This commit is contained in:
Pragmatic Software 2020-02-01 20:48:34 -08:00
parent 1c43699e6d
commit f173b43c8d

View File

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