Use correct command for factoid aliases

This commit is contained in:
Pragmatic Software 2017-11-30 18:53:40 -08:00
parent 7a53f74e83
commit 836a20262f
1 changed files with 2 additions and 4 deletions

View File

@ -907,10 +907,8 @@ sub handle_action {
# Check if it's an alias
if ($action =~ /^\/call\s+(.*)$/) {
my $command = $self->expand_factoid_vars($stuff->{from}, $stuff->{nick}, $stuff->{root_keyword}, $1);
if (length $stuff->{arguments}) {
$command .= " $stuff->{arguments}";
}
my $command = $1;
$command .= " $stuff->{arguments}" if length $stuff->{arguments};
$stuff->{command} = $command;