3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 11:42:35 +01:00

Interpreter: fix mishandling of spaces when building arglist

This commit is contained in:
Pragmatic Software 2019-05-27 07:43:14 -07:00
parent a851c08ffe
commit aa19260a24

View File

@ -17,6 +17,7 @@ use base 'PBot::Registerable';
use Time::HiRes qw/gettimeofday/;
use Time::Duration;
use Text::Balanced qw/extract_bracketed extract_quotelike/;
use Text::ParseWords;
use Carp ();
use PBot::Utils::ValidateString;
@ -341,7 +342,7 @@ sub interpret {
sub make_args {
my ($self, $string) = @_;
my @args = split / /, $string;
my @args = parse_line(' ', 1, $string);
my @arglist;
my @arglist_quotes;