mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 19:22:40 +01:00
Plugins/Plang: builtin print()
now returns its output
This commit is contained in:
parent
75ae6a8e38
commit
5d7a6fab4c
2
Plang
2
Plang
@ -1 +1 @@
|
||||
Subproject commit 5c13c6c5c006075401af95bc637b6a4aec9fe26a
|
||||
Subproject commit bcb144b35018cdb45704c2e59128b023eda2abb9
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user