diff --git a/applets/pbot-vm/host/lib/SplitLine.pm b/applets/pbot-vm/host/lib/SplitLine.pm index 72ab6d1d..ec982e28 100644 --- a/applets/pbot-vm/host/lib/SplitLine.pm +++ b/applets/pbot-vm/host/lib/SplitLine.pm @@ -55,7 +55,6 @@ sub split_line ($line, %opts) { $ch = $chars[$i++]; - my $dquote = $quote // 'undef'; $spaces = 0 if $ch ne ' '; if ($escaped) { @@ -101,7 +100,7 @@ sub split_line ($line, %opts) { } if ($ch eq ' ') { - if (++$spaces > 1 and $opts{keep_spaces}) { + if ($opts{keep_spaces} && (++$spaces > 1 || $ch eq "\n")) { $token .= $ch; next; } else { diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index 2a998f31..70e49e2f 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -25,7 +25,7 @@ use PBot::Imports; # These are set by the /misc/update_version script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 4825, + BUILD_REVISION => 4826, BUILD_DATE => "2024-11-02", };