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:
parent
7a53f74e83
commit
836a20262f
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user