diff --git a/lib/PBot/Core/Commands/Applets.pm b/lib/PBot/Core/Commands/Applets.pm index ea9d74e4..426c8807 100644 --- a/lib/PBot/Core/Commands/Applets.pm +++ b/lib/PBot/Core/Commands/Applets.pm @@ -32,7 +32,7 @@ sub cmd_load($self, $context) { $self->{pbot}->{factoids}->{data}->add('applet', '.*', $context->{hostmask}, $keyword, $applet, 1); - $factoids->set('.*', $keyword, 'add_nick', 1, 1); + $factoids->set('.*', $keyword, 'add_nick', 1); $factoids->set('.*', $keyword, 'nooverride', 1); $self->{pbot}->{logger}->log("$context->{hostmask} loaded applet $keyword => $applet\n"); diff --git a/lib/PBot/Core/Commands/Factoids.pm b/lib/PBot/Core/Commands/Factoids.pm index 6d6e01d2..7d1e94fb 100644 --- a/lib/PBot/Core/Commands/Factoids.pm +++ b/lib/PBot/Core/Commands/Factoids.pm @@ -1366,9 +1366,9 @@ sub cmd_factchange($self, $context) { $self->{pbot}->{logger}->log("($context->{from}) $context->{hostmask} changed '$trigger' 's/$tochange/$changeto/\n"); - $factoids_data->set($channel, $trigger, 'action', $action, 1); - $factoids_data->set($channel, $trigger, 'edited_by', $context->{hostmask}, 1); - $factoids_data->set($channel, $trigger, 'edited_on', gettimeofday); + $factoids_data->set($channel, $trigger, 'action', $action); + $factoids_data->set($channel, $trigger, 'edited_by', $context->{hostmask}); + $factoids_data->set($channel, $trigger, 'edited_on', scalar gettimeofday); $self->log_factoid($channel, $trigger, $context->{hostmask}, "changed to $action"); return "Changed: $trigger_name is $action"; } diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index fad4499c..f648c4f7 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -25,8 +25,8 @@ use PBot::Imports; # These are set by the /misc/update_version script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 4651, - BUILD_DATE => "2023-04-17", + BUILD_REVISION => 4652, + BUILD_DATE => "2023-04-21", }; sub initialize {}