From aa19260a24c22986a5d14dfb23c80673937808eb Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Mon, 27 May 2019 07:43:14 -0700 Subject: [PATCH] Interpreter: fix mishandling of spaces when building arglist --- PBot/Interpreter.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PBot/Interpreter.pm b/PBot/Interpreter.pm index 705bcf8d..f12467d6 100644 --- a/PBot/Interpreter.pm +++ b/PBot/Interpreter.pm @@ -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;