From 836a20262f5122d2528c8713caefa85bf519f794 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Thu, 30 Nov 2017 18:53:40 -0800 Subject: [PATCH] Use correct command for factoid aliases --- PBot/Factoids.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/PBot/Factoids.pm b/PBot/Factoids.pm index 36319217..fb9408ba 100644 --- a/PBot/Factoids.pm +++ b/PBot/Factoids.pm @@ -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;