mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-27 21:22:36 +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+(.*)$/) {
|
||||
my $command = $1;
|
||||
unless ($self->{factoids}->hash->{$channel}->{$keyword}->{'require_explicit_args'}) {
|
||||
my $args = $stuff->{original_arguments};
|
||||
$args = $stuff->{arguments} if exists $stuff->{arguments};
|
||||
$command .= " $args" if length $args and not $stuff->{aliased} and not $stuff->{special} eq 'code-factoid';
|
||||
my $args = $stuff->{arguments};
|
||||
$command .= " $args" if length $args and not $stuff->{special} eq 'code-factoid';
|
||||
$stuff->{arguments} = '';
|
||||
}
|
||||
|
||||
if ($command =~ s/\s*--keyword-override=([^ ]+)\s*//) {
|
||||
|
Loading…
Reference in New Issue
Block a user