3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 03:33:06 +01: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";