summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-06-03 10:46:59 -0500
committerJesse Luehrs <doy@tozt.net>2013-06-03 10:46:59 -0500
commit4257cfd2a9f2132edfcd37eea1ef41cf18296ae9 (patch)
treeff23f1ebeac20eed8612bd496355541ba5b7f968
parent3879a82f53e539217e582f2afbccaaf1fe335b5e (diff)
downloadreply-4257cfd2a9f2132edfcd37eea1ef41cf18296ae9.tar.gz
reply-4257cfd2a9f2132edfcd37eea1ef41cf18296ae9.zip
handle empty results in nopaste
-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);
}