Small fix posting news
This commit is contained in:
@@ -290,6 +290,15 @@ void command_group(char *cmd)
|
||||
*/
|
||||
if (msgs.Active && (msgs.Type == ECHOMAIL) && strlen(msgs.Newsgroup) &&
|
||||
(strcasecmp(opt, msgs.Newsgroup) == 0) && Access(usrconfig.Security, msgs.RDSec)) {
|
||||
/*
|
||||
* Returns:
|
||||
* 211 n f l s group selected
|
||||
* (n = estimated number of articles in group,
|
||||
* f = first article number in the group,
|
||||
* l = last article number in the group,
|
||||
* s = name of the group.)
|
||||
* 411 no such news group
|
||||
*/
|
||||
if (Msg_Open(msgs.Base)) {
|
||||
Msg_Number();
|
||||
Msg_Highest();
|
||||
|
@@ -265,7 +265,7 @@ void nntp(void)
|
||||
if (len == 0)
|
||||
continue;
|
||||
|
||||
if (strcasecmp(buf, (char*)"AUTHINFO PASS")) {
|
||||
if (strcasestr(buf, "AUTHINFO PASS") == NULL) {
|
||||
Syslog('n', "< \"%s\"", printable(buf, 0));
|
||||
} else {
|
||||
Syslog('n', "< \"AUTHINFO PASS ********\"");
|
||||
|
Reference in New Issue
Block a user