mirror of
https://github.com/pragma-/pbot.git
synced 2025-05-03 13:17:33 +02:00
Factoids: use correct arguments when calling alias
This commit is contained in:
parent
afddfbdbc5
commit
17f5b92a8f
@ -1005,7 +1005,9 @@ sub handle_action {
|
|||||||
if ($action =~ /^\/call\s+(.*)$/) {
|
if ($action =~ /^\/call\s+(.*)$/) {
|
||||||
my $command = $1;
|
my $command = $1;
|
||||||
unless ($self->{factoids}->hash->{$channel}->{$keyword}->{'require_explicit_args'}) {
|
unless ($self->{factoids}->hash->{$channel}->{$keyword}->{'require_explicit_args'}) {
|
||||||
$command .= " $stuff->{original_arguments}" if length $stuff->{original_arguments} and not $stuff->{aliased} and not $stuff->{special} eq 'code-factoid';
|
my $args = $stuff->{original_arguments};
|
||||||
|
$args = $stuff->{arguments} if exists $stuff->{arguments};
|
||||||
|
$command .= " $args" if length $args and not $stuff->{aliased} and not $stuff->{special} eq 'code-factoid';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($command =~ s/\s*--keyword-override=([^ ]+)\s*//) {
|
if ($command =~ s/\s*--keyword-override=([^ ]+)\s*//) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user