summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Reply/Plugin/Nopaste.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Reply/Plugin/Nopaste.pm b/lib/Reply/Plugin/Nopaste.pm
index a3fa909..d1205e1 100644
--- a/lib/Reply/Plugin/Nopaste.pm
+++ b/lib/Reply/Plugin/Nopaste.pm
@@ -46,7 +46,7 @@ sub print_error {
sub print_result {
my $self = shift;
my ($next, @result) = @_;
- $self->{result} = join('', @result) . "\n";
+ $self->{result} = @result ? join('', @result) . "\n" : '';
$next->(@result);
}