3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-23 11:12:42 +01:00

Commands: factoid-based $variables now expand in command arguments

This commit is contained in:
Pragmatic Software 2020-03-17 23:56:44 -07:00
parent 55115d8d16
commit 47661f4a21

View File

@ -112,6 +112,11 @@ sub interpreter {
}
}
$stuff->{action} = $stuff->{arguments};
$stuff->{arguments} = $self->{pbot}->{factoids}->expand_factoid_vars($stuff);
$stuff->{arguments} = $self->{pbot}->{factoids}->expand_special_vars($stuff->{from}, $stuff->{nick}, $stuff->{keyword}, $stuff->{arguments});
delete $stuff->{action};
$stuff->{no_nickoverride} = 1;
if ($self->get_meta($keyword, 'background-process')) {
my $timeout = $self->get_meta($keyword, 'process-timeout') // $self->{pbot}->{registry}->get_value('processmanager', 'default_timeout');