3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-26 20:52:37 +01:00

Commands: do not expand variables for commands with dont-replace-pronouns, in order to preserve expected behavior

This commit is contained in:
Pragmatic Software 2020-05-21 19:57:11 -07:00
parent 395f13020b
commit 8f024aa140

View File

@ -232,10 +232,12 @@ sub interpreter {
}
}
$context->{action} = $context->{arguments};
$context->{arguments} = $self->{pbot}->{factoids}->expand_factoid_vars($context);
$context->{arglist} = $self->{pbot}->{interpreter}->make_args($context->{arguments});
delete $context->{action};
unless ($self->get_meta($keyword, 'dont-replace-pronouns')) {
$context->{action} = $context->{arguments};
$context->{arguments} = $self->{pbot}->{factoids}->expand_factoid_vars($context);
$context->{arglist} = $self->{pbot}->{interpreter}->make_args($context->{arguments});
delete $context->{action};
}
$context->{no_nickoverride} = 1;
if ($self->get_meta($keyword, 'background-process')) {