Mercurial > noffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
180:09ca6eb5c7ff | 181:e196de757ecd |
---|---|
1 /* | 1 /* |
2 server.c | 2 server.c |
3 | 3 |
4 $Id: server.c 270 2001-05-01 18:07:28Z enz $ | 4 $Id: server.c 285 2001-05-10 16:00:12Z bears $ |
5 */ | 5 */ |
6 | 6 |
7 #if HAVE_CONFIG_H | 7 #if HAVE_CONFIG_H |
8 #include <config.h> | 8 #include <config.h> |
9 #endif | 9 #endif |
415 { | 415 { |
416 if ( ! loadGrpIfSelected() ) | 416 if ( ! loadGrpIfSelected() ) |
417 return FALSE; | 417 return FALSE; |
418 if ( ! Cont_validNumb( numb ) ) | 418 if ( ! Cont_validNumb( numb ) ) |
419 { | 419 { |
420 putStat( STAT_NO_SUCH_NUMB, "No such article" ); | 420 putStat( STAT_NO_SUCH_NUMB, "No such article number" ); |
421 return FALSE; | 421 return FALSE; |
422 } | 422 } |
423 return TRUE; | 423 return TRUE; |
424 } | 424 } |
425 | 425 |
455 *msgId = arg; | 455 *msgId = arg; |
456 *numb = 0; | 456 *numb = 0; |
457 } | 457 } |
458 if ( ! Pseudo_isGeneralInfo( *msgId ) && ! Db_contains( *msgId ) ) | 458 if ( ! Pseudo_isGeneralInfo( *msgId ) && ! Db_contains( *msgId ) ) |
459 { | 459 { |
460 putStat( STAT_NO_SUCH_NUMB, "No such article" ); | 460 putStat( STAT_NO_SUCH_ID, "No such article" ); |
461 return FALSE; | 461 return FALSE; |
462 } | 462 } |
463 return TRUE; | 463 return TRUE; |
464 } | 464 } |
465 | 465 |