mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-20 02:49:49 +01:00
Interpreter: don't stop processing on empty result
This commit is contained in:
parent
48373719d8
commit
50d4a2a94d
@ -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
|
||||
|
@ -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",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user