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", };