3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-23 12:29:27 +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
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;