changeset 48:21d3102dbc37 noffle

[svn] Revert setting of initial article number
author bears
date Sat, 06 May 2000 17:55:22 +0100
parents 89cfe3a7837e
children 5ecb646acf97
files src/client.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/client.c	Sat May 06 17:54:55 2000 +0100
+++ b/src/client.c	Sat May 06 17:55:22 2000 +0100
@@ -1,7 +1,7 @@
 /*
   client.c
 
-  $Id: client.c 49 2000-05-05 21:45:56Z uh1763 $
+  $Id: client.c 54 2000-05-06 16:55:22Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -398,6 +398,12 @@
         {
             Log_inf( "Registering new group '%s'", grp );
             Grp_create( grp );
+            /* Start local numbering with remote first number to avoid
+               new numbering at the readers if noffle is re-installed */
+            if ( first != 0 )
+                Grp_setFirstLast( grp, first, first - 1 );
+            else
+                Grp_setFirstLast( grp, 1, 0 );
             Grp_setRmtNext( grp, first );
             Grp_setServ( grp, client.serv );
 	    Grp_setPostAllow( grp, postAllow );