mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-22 03:49:29 +01:00
Fix some inconsistent arguments
This commit is contained in:
parent
cfaa5cfd4e
commit
2c3f8fb9fe
@ -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");
|
||||
|
@ -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";
|
||||
}
|
||||
|
@ -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 {}
|
||||
|
Loading…
Reference in New Issue
Block a user