From 031f1274b700db5f2b1a03b1c2bc5380e57adcee Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Wed, 14 Apr 2004 19:45:43 +0000 Subject: [PATCH] Fixed mode reader to use auth --- mbnntp/mbnntp.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mbnntp/mbnntp.c b/mbnntp/mbnntp.c index 00800419..a23b0937 100644 --- a/mbnntp/mbnntp.c +++ b/mbnntp/mbnntp.c @@ -263,10 +263,12 @@ void nntp(void) if (check_auth(buf)) command_abhs(buf); } else if (strncasecmp(buf, "MODE READER", 11) == 0) { - if (authorized) - send_nntp("200 Server ready, posting allowed"); - else - send_nntp("201 Server ready, no posting allowed"); + if (check_auth(buf)) { + if (authorized) + send_nntp("200 Server ready, posting allowed"); + else + send_nntp("201 Server ready, no posting allowed"); + } } else if (strncasecmp(buf, "XOVER", 5) == 0) { if (check_auth(buf)) command_xover(buf);