mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 12:32:37 +01:00
Factoids: use correct arguments when calling alias
This commit is contained in:
parent
afddfbdbc5
commit
17f5b92a8f
@ -1005,7 +1005,9 @@ sub handle_action {
|
||||
if ($action =~ /^\/call\s+(.*)$/) {
|
||||
my $command = $1;
|
||||
unless ($self->{factoids}->hash->{$channel}->{$keyword}->{'require_explicit_args'}) {
|
||||
$command .= " $stuff->{original_arguments}" if length $stuff->{original_arguments} and not $stuff->{aliased} and not $stuff->{special} eq 'code-factoid';
|
||||
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';
|
||||
}
|
||||
|
||||
if ($command =~ s/\s*--keyword-override=([^ ]+)\s*//) {
|
||||
|
Loading…
Reference in New Issue
Block a user