3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-27 06:19:25 +01:00

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

View File

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