mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-19 10:29:30 +01:00
Factoids: undo weird $args man-in-the-middle behavior
This commit is contained in:
parent
56f7e2ab7d
commit
d8a9660e39
@ -1007,9 +1007,9 @@ sub handle_action {
|
|||||||
if ($action =~ /^\/call\s+(.*)$/) {
|
if ($action =~ /^\/call\s+(.*)$/) {
|
||||||
my $command = $1;
|
my $command = $1;
|
||||||
unless ($self->{factoids}->hash->{$channel}->{$keyword}->{'require_explicit_args'}) {
|
unless ($self->{factoids}->hash->{$channel}->{$keyword}->{'require_explicit_args'}) {
|
||||||
my $args = $stuff->{original_arguments};
|
my $args = $stuff->{arguments};
|
||||||
$args = $stuff->{arguments} if exists $stuff->{arguments};
|
$command .= " $args" if length $args and not $stuff->{special} eq 'code-factoid';
|
||||||
$command .= " $args" if length $args and not $stuff->{aliased} and not $stuff->{special} eq 'code-factoid';
|
$stuff->{arguments} = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($command =~ s/\s*--keyword-override=([^ ]+)\s*//) {
|
if ($command =~ s/\s*--keyword-override=([^ ]+)\s*//) {
|
||||||
|
Loading…
Reference in New Issue
Block a user