3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 22:09:26 +01:00

Plang print() built-in returns Nil again

This commit is contained in:
Pragmatic Software 2020-07-19 14:49:17 -07:00
parent 5d7a6fab4c
commit cdeb3efe1e
2 changed files with 2 additions and 2 deletions

2
Plang

@ -1 +1 @@
Subproject commit bcb144b35018cdb45704c2e59128b023eda2abb9
Subproject commit f1fca8c5dd6424029d83e170a4081ce8f2403f05

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 ['STRING', "$stmt$end"];
return ['NIL', undef];
}
# our custom PBot built-in functions for Plang