mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 19:22:40 +01:00
Commands: factoid-based $variables now expand in command arguments
This commit is contained in:
parent
55115d8d16
commit
47661f4a21
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user