From 4c5492f5e94d9077c4de58905efe18fd134f17b6 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Mon, 2 Aug 2021 18:06:50 -0700 Subject: [PATCH] Plugins/Plang: fix add_factoid() --- lib/PBot/Plugin/Plang.pm | 4 ++-- lib/PBot/VERSION.pm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/PBot/Plugin/Plang.pm b/lib/PBot/Plugin/Plang.pm index 496748d4..15f18e8b 100644 --- a/lib/PBot/Plugin/Plang.pm +++ b/lib/PBot/Plugin/Plang.pm @@ -189,7 +189,7 @@ sub plang_builtin_factset { my ($self, $plang, $context, $name, $arguments) = @_; my ($channel, $keyword, $text) = ($arguments->[0]->[1], $arguments->[1]->[1], $arguments->[2]->[1]); die "Factoid $channel.$keyword is locked. Cannot set.\n" if $self->is_locked($channel, $keyword); - $self->{pbot}->{factoids}->{data}->add_factoid('text', $channel, 'Plang', $keyword, $text); + $self->{pbot}->{factoids}->{data}->add('text', $channel, 'Plang', $keyword, $text); return [['TYPE', 'String'], $text]; } @@ -204,7 +204,7 @@ sub plang_builtin_factappend { my $action = $self->{pbot}->{factoids}->{data}->get_meta($channel, $keyword, 'action'); $action = "" if not defined $action; $action .= $text; - $self->{pbot}->{factoids}->{data}->add_factoid('text', $channel, 'Plang', $keyword, $action); + $self->{pbot}->{factoids}->{data}->add('text', $channel, 'Plang', $keyword, $action); return [['TYPE', 'String'], $action]; } diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index 7ad32d10..e08ff03c 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -25,7 +25,7 @@ use PBot::Imports; # These are set by the /misc/update_version script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 4339, + BUILD_REVISION => 4340, BUILD_DATE => "2021-08-02", };