changeset 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 09ca6eb5c7ff
children a43a528cfbe7
files ChangeLog src/server.c
diffstat 2 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed May 09 12:33:43 2001 +0100
+++ b/ChangeLog	Thu May 10 17:00:12 2001 +0100
@@ -1,3 +1,11 @@
+Thu May 10 2001 Jim Hageu <jim.hague@acm.org>
+
+ * 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.
+
 Wed May  9 2001 Jim Hague <jim.hague@acm.org>
 
  * TODO,src/client.c,src/client.h,src/fetch.c,src/fetch.h,src/noffle.c:
--- 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;