* newsportal.php: added clarification of NNTP response

This commit is contained in:
vga256 2023-07-02 12:03:25 -06:00 committed by Retro_Guy
parent 271ca2ead3
commit 8e1fe5de65
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ function nntp_open($nserver=0,$nport=0) {
fputs($ns,"AUTHINFO PASS ".$CONFIG['server_auth_pass']."\r\n");
$weg=line_read($ns);
/* Only check auth if reading and posting same server */
// NNTP Response NOT 281 (Authorization failed)
if (substr($weg,0,3) != "281" && !(isset($post_server)) && ($post_server!="")) {
echo "<p>".$text_error["error:"]."</p>";
echo "<p>".$text_error["auth_error"]."</p>";