mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-18 14:30:40 +01:00
Commands: do not expand variables for commands with dont-replace-pronouns, in order to preserve expected behavior
This commit is contained in:
parent
395f13020b
commit
8f024aa140
@ -232,10 +232,12 @@ sub interpreter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$context->{action} = $context->{arguments};
|
unless ($self->get_meta($keyword, 'dont-replace-pronouns')) {
|
||||||
$context->{arguments} = $self->{pbot}->{factoids}->expand_factoid_vars($context);
|
$context->{action} = $context->{arguments};
|
||||||
$context->{arglist} = $self->{pbot}->{interpreter}->make_args($context->{arguments});
|
$context->{arguments} = $self->{pbot}->{factoids}->expand_factoid_vars($context);
|
||||||
delete $context->{action};
|
$context->{arglist} = $self->{pbot}->{interpreter}->make_args($context->{arguments});
|
||||||
|
delete $context->{action};
|
||||||
|
}
|
||||||
|
|
||||||
$context->{no_nickoverride} = 1;
|
$context->{no_nickoverride} = 1;
|
||||||
if ($self->get_meta($keyword, 'background-process')) {
|
if ($self->get_meta($keyword, 'background-process')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user