]> Sergey Matveev's repositories - public-inbox.git/commitdiff
nntp: MODE READER denies posting
authorEric Wong <e@80x24.org>
Wed, 30 Sep 2015 21:00:23 +0000 (21:00 +0000)
committerEric Wong <e@80x24.org>
Wed, 30 Sep 2015 21:09:22 +0000 (21:09 +0000)
Redundantly confirm to clients we do not accept posting with the
MODE READER command.

ref: RFC 3977 5.3.1

lib/PublicInbox/NNTP.pm

index dc4227ece87cf2e042ac793780268aebeca53cee..142bee391d2b24ef8be2679df1ebec58decfc22e 100644 (file)
@@ -78,7 +78,7 @@ sub cmd_mode ($$) {
        my ($self, $arg) = @_;
        $arg = uc $arg;
        return r501 unless $arg eq 'READER';
-       '200 reader status acknowledged';
+       '201 Posting prohibited';
 }
 
 sub cmd_slave ($) { '202 slave status noted' }