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:
parent
fbe467a472
commit
b089aa74bd
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user