mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 03:33:06 +01:00
Interpreter: fix mishandling of spaces when building arglist
This commit is contained in:
parent
a851c08ffe
commit
aa19260a24
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user