Plugins/Plang: builtin `print()` now returns its output

This commit is contained in:
Pragmatic Software 2020-07-18 23:27:44 -07:00
parent 75ae6a8e38
commit 5d7a6fab4c
2 changed files with 2 additions and 2 deletions

2
Plang

@ -1 +1 @@
Subproject commit 5c13c6c5c006075401af95bc637b6a4aec9fe26a
Subproject commit bcb144b35018cdb45704c2e59128b023eda2abb9

View File

@ -145,7 +145,7 @@ sub print_override {
my ($self, $plang, $name, $arguments) = @_;
my ($stmt, $end) = ($plang->output_value($arguments->[0]), $arguments->[1]->[1]);
$self->{output} .= "$stmt$end";
return ['NIL', undef];
return ['STRING', "$stmt$end"];
}
# our custom PBot built-in functions for Plang