From 2d417e23684359bf80a6445a7748ded7e4d05ec0 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 25 Jul 2021 19:07:03 -0700 Subject: [PATCH] Factoids: fix log_factoid() in add_factoid() --- lib/PBot/Core/Factoids.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PBot/Core/Factoids.pm b/lib/PBot/Core/Factoids.pm index 3ce5fe59..0886029d 100644 --- a/lib/PBot/Core/Factoids.pm +++ b/lib/PBot/Core/Factoids.pm @@ -129,7 +129,7 @@ sub add_factoid { } $self->{storage}->add($channel, $trigger, $data, $dont_save); - $self->{commands}->log_factoid($channel, $trigger, $owner, "created: $action") unless $dont_save; + $self->{pbot}->{commands}->{modules}->{Factoids}->log_factoid($channel, $trigger, $owner, "created: $action") unless $dont_save; } sub remove_factoid {