From 33895202425441fb9a65a624c2d624fea026f811 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 25 Sep 2015 02:27:51 +0000 Subject: nntp: consistently use 501 for unsupported LIST This is required by RFC 3977, section 3.2.1 --- lib/PublicInbox/NNTP.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/NNTP.pm') diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm index c2f97177..dd033e89 100644 --- a/lib/PublicInbox/NNTP.pm +++ b/lib/PublicInbox/NNTP.pm @@ -123,14 +123,14 @@ sub list_newsgroups ($;$) { } } -# LIST SUBSCRIPTIONS not supported +# LIST SUBSCRIPTIONS, DISTRIB.PATS are not supported sub cmd_list ($;$$) { my ($self, @args) = @_; if (scalar @args) { my $arg = shift @args; $arg =~ tr/A-Z./a-z_/; $arg = "list_$arg"; - return '503 function not performed' if $DISABLED{$arg}; + return r501 if $DISABLED{$arg}; $arg = eval { no strict 'refs'; -- cgit v1.2.3-24-ge0c7