mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-18 14:30:40 +01:00
Plugins/Plang: fix double printing
This commit is contained in:
parent
919a11a2fb
commit
7698531397
2
Plang
2
Plang
@ -1 +1 @@
|
|||||||
Subproject commit df6f6a11f5bd545e77774b2a883a9f7f5c7229fe
|
Subproject commit b1dc703205270a0471a86374f96f128cfb947bb7
|
@ -104,7 +104,11 @@ sub run {
|
|||||||
if ($ins eq 'STMT') {
|
if ($ins eq 'STMT') {
|
||||||
$result = $self->{plang}->{interpreter}->statement($context, $node->[1]);
|
$result = $self->{plang}->{interpreter}->statement($context, $node->[1]);
|
||||||
|
|
||||||
$self->{output} .= $result->[1] if $result->[0] eq 'STDOUT';
|
if ($result->[0] eq 'STDOUT') {
|
||||||
|
$self->{output} .= $result->[1];
|
||||||
|
$result = undef;
|
||||||
|
next;
|
||||||
|
}
|
||||||
|
|
||||||
if ($result->[0] eq 'ERROR') {
|
if ($result->[0] eq 'ERROR') {
|
||||||
$self->{output} .= "Error: $result->[1]";
|
$self->{output} .= "Error: $result->[1]";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user