diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-06-03 10:46:59 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-06-03 10:46:59 -0500 |
commit | 4257cfd2a9f2132edfcd37eea1ef41cf18296ae9 (patch) | |
tree | ff23f1ebeac20eed8612bd496355541ba5b7f968 /lib/Reply/Plugin/Nopaste.pm | |
parent | 3879a82f53e539217e582f2afbccaaf1fe335b5e (diff) | |
download | reply-4257cfd2a9f2132edfcd37eea1ef41cf18296ae9.tar.gz reply-4257cfd2a9f2132edfcd37eea1ef41cf18296ae9.zip |
handle empty results in nopaste
Diffstat (limited to 'lib/Reply/Plugin/Nopaste.pm')
-rw-r--r-- | lib/Reply/Plugin/Nopaste.pm | 2 |
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); } |