Fixed mode reader to use auth
This commit is contained in:
parent
b21dda8071
commit
031f1274b7
@ -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);
|
||||
|
Reference in New Issue
Block a user