3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

Interpreter: don't stop processing on empty result

This commit is contained in:
Pragmatic Software 2021-08-23 21:51:26 -07:00
parent 48373719d8
commit 50d4a2a94d
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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",
};