mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 04:19: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
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user