comparison src/server.c @ 389:f81fdcc2696b noffle

[svn] * src/server.c: Move incorrect updating of server.grp in doGrp() which was causing doGrp() to not retrieve remote article details when in online mode.
author bears
date Thu, 22 May 2003 09:41:37 +0100
parents c02c4eb95f95
children 466b42bb776e
comparison
equal deleted inserted replaced
388:8e14809bf172 389:f81fdcc2696b
1 /* 1 /*
2 server.c 2 server.c
3 3
4 $Id: server.c 420 2003-01-10 23:25:45Z bears $ 4 $Id: server.c 531 2003-05-22 08:41:37Z 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
373 putSyntax( cmd ); 373 putSyntax( cmd );
374 else if ( ! Grp_exists( arg ) ) 374 else if ( ! Grp_exists( arg ) )
375 putStat( STAT_NO_SUCH_GRP, "No such group" ); 375 putStat( STAT_NO_SUCH_GRP, "No such group" );
376 else 376 else
377 { 377 {
378 Utl_cpyStr( server.grp, arg );
379 server.groupReady = FALSE; 378 server.groupReady = FALSE;
380 server.artPtr = Grp_first( arg ); 379 server.artPtr = Grp_first( arg );
381 first = server.artPtr; 380 first = server.artPtr;
382 last = Grp_last( arg ); 381 last = Grp_last( arg );
383 382
384 if ( ( first == 0 && last == 0 ) 383 if ( ( first == 0 && last == 0 )
385 || first > last ) { 384 || first > last )
385 {
386 changeToGrp( arg ); 386 changeToGrp( arg );
387 first = Cont_first(); 387 first = Cont_first();
388 last = Cont_last(); 388 last = Cont_last();
389 } 389 }
390 else
391 Utl_cpyStr( server.grp, arg );
390 392
391 if ( ( first == 0 && last == 0 ) 393 if ( ( first == 0 && last == 0 )
392 || first > last ) 394 || first > last )
393 first = last = numb = 0; 395 first = last = numb = 0;
394 else 396 else
918 } 920 }
919 921
920 static void 922 static void
921 putGrp( const char *name ) 923 putGrp( const char *name )
922 { 924 {
923 putTxtLn( "%s %lu %lu y", name, Grp_last( name ), Grp_first( name ) ); 925 putTxtLn( "%s %lu %lu %c",
926 name, Grp_last( name ), Grp_first( name ),
927 Grp_postAllow( name ));
924 } 928 }
925 929
926 static void 930 static void
927 doListOverFmt( void ) 931 doListOverFmt( void )
928 { 932 {