mirror of
https://github.com/pragma-/pbot.git
synced 2025-05-13 18:07:27 +02:00
Factoids: er, preserve the quotes in arguments
This commit is contained in:
parent
e0e9cbed25
commit
90f3d390bd
@ -313,9 +313,8 @@ sub find_factoid {
|
|||||||
} else {
|
} else {
|
||||||
$command = $1;
|
$command = $1;
|
||||||
}
|
}
|
||||||
my @args = $self->{pbot}->{interpreter}->split_line($command, 1);
|
my $arglist = $self->{pbot}->{interpreter}->make_args($command);
|
||||||
$keyword = shift @args;
|
($keyword, $arguments) = $self->{pbot}->{interpreter}->split_args($arglist, 2);
|
||||||
$arguments = join ' ', @args;
|
|
||||||
goto NEXT_DEPTH;
|
goto NEXT_DEPTH;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -343,9 +342,8 @@ sub find_factoid {
|
|||||||
|
|
||||||
if ($find_alias) {
|
if ($find_alias) {
|
||||||
my $command = $self->{factoids}->hash->{$channel}->{$trigger}->{action};
|
my $command = $self->{factoids}->hash->{$channel}->{$trigger}->{action};
|
||||||
my @args = $self->{pbot}->{interpreter}->split_line($command, 1);
|
my $arglist = $self->{pbot}->{interpreter}->make_args($command);
|
||||||
$keyword = shift @args;
|
($keyword, $arguments) = $self->{pbot}->{interpreter}->split_args($arglist, 2);
|
||||||
$arguments = join ' ', @args;
|
|
||||||
$string = $keyword . (length $arguments ? " $arguments" : "");
|
$string = $keyword . (length $arguments ? " $arguments" : "");
|
||||||
goto NEXT_DEPTH;
|
goto NEXT_DEPTH;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user