Mercurial > noffle
comparison src/client.c @ 48:21d3102dbc37 noffle
[svn] Revert setting of initial article number
author | bears |
---|---|
date | Sat, 06 May 2000 17:55:22 +0100 |
parents | 2842f50feb55 |
children | 125d79c9e586 |
comparison
equal
deleted
inserted
replaced
47:89cfe3a7837e | 48:21d3102dbc37 |
---|---|
1 /* | 1 /* |
2 client.c | 2 client.c |
3 | 3 |
4 $Id: client.c 49 2000-05-05 21:45:56Z uh1763 $ | 4 $Id: client.c 54 2000-05-06 16:55:22Z 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 |
396 } | 396 } |
397 if ( ! Grp_exists( grp ) ) | 397 if ( ! Grp_exists( grp ) ) |
398 { | 398 { |
399 Log_inf( "Registering new group '%s'", grp ); | 399 Log_inf( "Registering new group '%s'", grp ); |
400 Grp_create( grp ); | 400 Grp_create( grp ); |
401 /* Start local numbering with remote first number to avoid | |
402 new numbering at the readers if noffle is re-installed */ | |
403 if ( first != 0 ) | |
404 Grp_setFirstLast( grp, first, first - 1 ); | |
405 else | |
406 Grp_setFirstLast( grp, 1, 0 ); | |
401 Grp_setRmtNext( grp, first ); | 407 Grp_setRmtNext( grp, first ); |
402 Grp_setServ( grp, client.serv ); | 408 Grp_setServ( grp, client.serv ); |
403 Grp_setPostAllow( grp, postAllow ); | 409 Grp_setPostAllow( grp, postAllow ); |
404 } | 410 } |
405 else | 411 else |