3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-17 01:19:31 +01:00

Interpreter: reset split_result after processing it

This fixes e.g.:

    <pragma-> ,{echo foo ;;; echo bar}  ,{echo baz}
       <PBot> foo bar
       <PBot> foo baz

To instead produce the expected:

    <PBot> foo bar
    <PBot> baz
This commit is contained in:
Pragmatic Software 2024-11-10 17:45:33 -08:00
parent 8e2b0df17c
commit dbff4bc2f7
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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 {}