From 50d4a2a94d48e9fc10516cbc49d2388b13824559 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Mon, 23 Aug 2021 21:51:26 -0700 Subject: [PATCH] Interpreter: don't stop processing on empty result --- lib/PBot/Core/Interpreter.pm | 4 ++-- lib/PBot/VERSION.pm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/PBot/Core/Interpreter.pm b/lib/PBot/Core/Interpreter.pm index 2c64a171..3ed8c563 100644 --- a/lib/PBot/Core/Interpreter.pm +++ b/lib/PBot/Core/Interpreter.pm @@ -557,7 +557,7 @@ sub handle_result { $context->{preserve_whitespace} //= 0; # debug flag to trace $context location and contents - if ($self->{pbot}->{registry}->get_value('general', 'debugcontext') and length $context->{result}) { + if ($self->{pbot}->{registry}->get_value('general', 'debugcontext')) { use Data::Dumper; $Data::Dumper::Sortkeys = 1; $self->{pbot}->{logger}->log("Interpreter::handle_result [$result]\n"); @@ -566,7 +566,7 @@ sub handle_result { # ensure we have a command result to work with if (not defined $result or length $result == 0) { - return 0; + $result = ""; } # strip and store /command prefixes diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index a2d5cc8d..1e4221b5 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 => 4362, + BUILD_REVISION => 4363, BUILD_DATE => "2021-08-23", };