diff src/server.c @ 181:e196de757ecd noffle

[svn] * src/server.c: Correct error code given when article requested by message ID is not found. Previously the code given (423) was the same as for when an article requested by its number in a group was not found. The docs (and various NNTP servers) say 430 should be returned. Thanks to Alberto Mardegan <amardegan@iol.it> for spotting that.
author bears
date Thu, 10 May 2001 17:00:12 +0100
parents 19e3aa717196
children fed1334d766b
line wrap: on
line diff
--- a/src/server.c	Wed May 09 12:33:43 2001 +0100
+++ b/src/server.c	Thu May 10 17:00:12 2001 +0100
@@ -1,7 +1,7 @@
 /*
   server.c
 
-  $Id: server.c 270 2001-05-01 18:07:28Z enz $
+  $Id: server.c 285 2001-05-10 16:00:12Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -417,7 +417,7 @@
         return FALSE;
     if ( ! Cont_validNumb( numb ) )
     {
-        putStat( STAT_NO_SUCH_NUMB, "No such article" );
+        putStat( STAT_NO_SUCH_NUMB, "No such article number" );
         return FALSE;
     }
     return TRUE;
@@ -457,7 +457,7 @@
     }
     if ( ! Pseudo_isGeneralInfo( *msgId ) && ! Db_contains( *msgId ) )
     {
-        putStat( STAT_NO_SUCH_NUMB, "No such article" );
+        putStat( STAT_NO_SUCH_ID, "No such article" );
         return FALSE;
     }
     return TRUE;