Factoids: use correct arguments when calling alias

This commit is contained in:
Pragmatic Software 2019-05-22 23:12:31 -07:00
parent afddfbdbc5
commit 17f5b92a8f
1 changed files with 3 additions and 1 deletions

View File

@ -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*//) {