# HG changeset patch # User bears # Date 989510412 -3600 # Node ID e196de757ecd4462006c6a0931f2ab7397825e92 # Parent 09ca6eb5c7ff86d36bbeb7dfa7db233bcb8c705d [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 for spotting that. diff -r 09ca6eb5c7ff -r e196de757ecd ChangeLog --- 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 + + * 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 for spotting that. + Wed May 9 2001 Jim Hague * TODO,src/client.c,src/client.h,src/fetch.c,src/fetch.h,src/noffle.c: diff -r 09ca6eb5c7ff -r e196de757ecd src/server.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;