mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 12:32:37 +01:00
No need to show debugcontext log for empty result
This commit is contained in:
parent
f870a724f3
commit
3ab8f44a8a
@ -351,7 +351,7 @@ sub handle_result {
|
|||||||
|
|
||||||
$stuff->{preserve_whitespace} = 0 if not defined $stuff->{preserve_whitespace};
|
$stuff->{preserve_whitespace} = 0 if not defined $stuff->{preserve_whitespace};
|
||||||
|
|
||||||
if ($self->{pbot}->{registry}->get_value('general', 'debugcontext')) {
|
if ($self->{pbot}->{registry}->get_value('general', 'debugcontext') and length $stuff->{result}) {
|
||||||
use Data::Dumper;
|
use Data::Dumper;
|
||||||
$Data::Dumper::Sortkeys = 1;
|
$Data::Dumper::Sortkeys = 1;
|
||||||
$self->{pbot}->{logger}->log("Interpreter::handle_result [$result]\n");
|
$self->{pbot}->{logger}->log("Interpreter::handle_result [$result]\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user