3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-04 18:38:47 +02:00

Er, don't add /say to result if no result

This commit is contained in:
Pragmatic Software 2017-12-04 21:37:58 -08:00
parent fbe467a472
commit b089aa74bd

View File

@ -166,7 +166,7 @@ sub execute_module {
$stuff->{result} = `./$module $stuff->{arguments} 2>> $module-stderr`;
chomp $stuff->{result};
$stuff->{result} = "/say $stuff->{result}";
$stuff->{result} = "/say $stuff->{result}" if length $stuff->{result};
my $json = encode_json $stuff;
print $writer "$json\n";