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))
|
if (check_auth(buf))
|
||||||
command_abhs(buf);
|
command_abhs(buf);
|
||||||
} else if (strncasecmp(buf, "MODE READER", 11) == 0) {
|
} else if (strncasecmp(buf, "MODE READER", 11) == 0) {
|
||||||
if (authorized)
|
if (check_auth(buf)) {
|
||||||
send_nntp("200 Server ready, posting allowed");
|
if (authorized)
|
||||||
else
|
send_nntp("200 Server ready, posting allowed");
|
||||||
send_nntp("201 Server ready, no posting allowed");
|
else
|
||||||
|
send_nntp("201 Server ready, no posting allowed");
|
||||||
|
}
|
||||||
} else if (strncasecmp(buf, "XOVER", 5) == 0) {
|
} else if (strncasecmp(buf, "XOVER", 5) == 0) {
|
||||||
if (check_auth(buf))
|
if (check_auth(buf))
|
||||||
command_xover(buf);
|
command_xover(buf);
|
||||||
|
Reference in New Issue
Block a user