From 25cd95498bfd30f7436cdf782feec0d3ca76f837 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 8 Sep 2019 10:41:11 +0000 Subject: nntp: fix redundant CRLF from "LISTGROUP GROUP RANGE" Since Net::NNTP::listgroup doesn't support the range parameter, I had to test this manually and noticed extra CRLF were emitted. --- lib/PublicInbox/NNTP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm index 7c3f68a2..41f1e9c1 100644 --- a/lib/PublicInbox/NNTP.pm +++ b/lib/PublicInbox/NNTP.pm @@ -237,7 +237,7 @@ sub cmd_listgroup ($;$$) { long_response($self, sub { $r = $mm->msg_range(\$beg, $end, 'num'); scalar(@$r) or return; - more($self, join("\r\n", map { "$_->[0]\r\n" } @$r)); + more($self, join("\r\n", map { $_->[0] } @$r)); 1; }); } else { # grab every article number -- cgit v1.2.3-24-ge0c7