From 4257cfd2a9f2132edfcd37eea1ef41cf18296ae9 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 3 Jun 2013 10:46:59 -0500 Subject: handle empty results in nopaste --- lib/Reply/Plugin/Nopaste.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3-54-g00ecf