mirror of
https://github.com/pragma-/pbot.git
synced 2025-07-11 07:57:24 +02:00
Plugins/Plang: use output_value to print values
This commit is contained in:
parent
1a2655c22d
commit
61dde5e9f5
@ -63,7 +63,7 @@ sub cmd_plang {
|
||||
my $result = $self->run($context->{arguments});
|
||||
|
||||
# check to see if we need to append final result to output
|
||||
$self->{output} .= $result->[1] if defined $result->[1];
|
||||
$self->{output} .= $self->{plang}->{interpreter}->output_value($result) if defined $result->[1];
|
||||
|
||||
# return the output
|
||||
return length $self->{output} ? $self->{output} : "No output.";
|
||||
|
Loading…
x
Reference in New Issue
Block a user