Factoids: Remove use of shellwords

This commit is contained in:
Pragmatic Software 2019-06-22 18:29:54 -07:00
parent 51fa020de2
commit 5cf13c1bdd
1 changed files with 1 additions and 5 deletions

View File

@ -619,10 +619,7 @@ sub expand_action_arguments {
$action =~ s/\$args(?![[\w])/$input/g;
}
my $qinput = quotemeta $input;
$qinput =~ s/\\ / /g;
my @args = shellwords($qinput);
my @args = $self->{pbot}->{interpreter}->split_line($input);
$action =~ s/\$arglen\b/scalar @args/eg;
my $depth = 0;
@ -966,7 +963,6 @@ sub handle_action {
if ($self->{factoids}->hash->{$channel}->{$keyword}->{type} eq 'text') {
my $target = $self->{pbot}->{nicklist}->is_present_similar($stuff->{from}, $stuff->{arguments});
if ($target and $action !~ /\$(?:nick|args)\b/) {
$stuff->{nickoverride} = $target unless $stuff->{force_nickoverride};
$stuff->{no_nickoverride} = 0;