From dbff4bc2f7c939b8c48bb964ab9bacf6636b776b Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 10 Nov 2024 17:45:33 -0800 Subject: [PATCH] Interpreter: reset `split_result` after processing it This fixes e.g.: ,{echo foo ;;; echo bar} ,{echo baz} foo bar foo baz To instead produce the expected: foo bar baz --- lib/PBot/Core/Interpreter.pm | 1 + lib/PBot/VERSION.pm | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/PBot/Core/Interpreter.pm b/lib/PBot/Core/Interpreter.pm index c2d39988..10846c5a 100644 --- a/lib/PBot/Core/Interpreter.pm +++ b/lib/PBot/Core/Interpreter.pm @@ -697,6 +697,7 @@ sub handle_result($self, $context, $result = $context->{result}) { $result =~ s!^/me !\n* $botnick !i; $result = $context->{split_result} . $result; + delete $context->{split_result}; } # nothing more to do here if we have no result or keyword diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index a94ea950..ac653d7d 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -25,8 +25,8 @@ use PBot::Imports; # These are set by the /misc/update_version script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 4847, - BUILD_DATE => "2024-11-09", + BUILD_REVISION => 4849, + BUILD_DATE => "2024-11-10", }; sub initialize {}