comparison src/server.c @ 106:46062d2f9d20 noffle

[svn] Auto subscribe mode now group-dependent
author bears
date Tue, 13 Jun 2000 07:38:18 +0100
parents 1fcdced0246e
children 3b4db42990e0
comparison
equal deleted inserted replaced
105:1a54e1702ea2 106:46062d2f9d20
1 /* 1 /*
2 server.c 2 server.c
3 3
4 $Id: server.c 100 2000-05-18 12:17:23Z bears $ 4 $Id: server.c 145 2000-06-13 06:38:18Z 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
127 Fetchlist_read(); 127 Fetchlist_read();
128 if ( ! Fetchlist_contains( server.grp ) ) 128 if ( ! Fetchlist_contains( server.grp ) )
129 { 129 {
130 if ( Cfg_autoSubscribe() ) 130 if ( Cfg_autoSubscribe() )
131 { 131 {
132 if ( strcmp( Cfg_autoSubscribeMode(), "full" ) == 0 ) 132 if ( strcmp( Cfg_autoSubscribeMode( server.grp ), "full" ) == 0 )
133 mode = FULL; 133 mode = FULL;
134 else if ( strcmp( Cfg_autoSubscribeMode(), "thread" ) == 0 ) 134 else if ( strcmp( Cfg_autoSubscribeMode( server.grp ), "thread" ) == 0 )
135 mode = THREAD; 135 mode = THREAD;
136 else 136 else
137 mode = OVER; 137 mode = OVER;
138 Fetchlist_add( server.grp, mode ); 138 Fetchlist_add( server.grp, mode );
139 Fetchlist_write(); 139 Fetchlist_write();