changeset 160:23a53c92d4d7 noffle

[svn] apply bug-fix for lazy group loading by Matija Nalis
author enz
date Fri, 29 Dec 2000 15:05:10 +0000
parents 4d1353d7d513
children fbbdc46429b4
files src/server.c
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/server.c	Fri Dec 29 15:04:23 2000 +0000
+++ b/src/server.c	Fri Dec 29 15:05:10 2000 +0000
@@ -1,7 +1,7 @@
 /*
   server.c
 
-  $Id: server.c 236 2000-12-05 19:50:09Z enz $
+  $Id: server.c 244 2000-12-29 15:05:10Z enz $
 */
 
 #if HAVE_CONFIG_H
@@ -327,6 +327,14 @@
 	server.artPtr = Grp_first( arg );
 	first = server.artPtr;
 	last = Grp_last( arg );
+	
+	if ( ( first == 0 && last == 0 )
+	     || first > last ) {
+		changeToGrp( arg );
+		first = Cont_first();
+		last = Cont_last();
+	}
+	
 	if ( ( first == 0 && last == 0 )
 	     || first > last )
             first = last = numb = 0;