mirror of
https://github.com/pragma-/pbot.git
synced 2025-10-12 22:17:24 +02: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`;
|
$stuff->{result} = `./$module $stuff->{arguments} 2>> $module-stderr`;
|
||||||
chomp $stuff->{result};
|
chomp $stuff->{result};
|
||||||
|
|
||||||
$stuff->{result} = "/say $stuff->{result}";
|
$stuff->{result} = "/say $stuff->{result}" if length $stuff->{result};
|
||||||
|
|
||||||
my $json = encode_json $stuff;
|
my $json = encode_json $stuff;
|
||||||
print $writer "$json\n";
|
print $writer "$json\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user