Mercurial > noffle
comparison src/server.c @ 82:1eb0cdd17c76 noffle
[svn] info-always-unread config/doc/implementation
author | bears |
---|---|
date | Sun, 14 May 2000 17:15:08 +0100 |
parents | c7df2cc65cc1 |
children | dfcb28566d36 |
comparison
equal
deleted
inserted
replaced
81:8b4e3f9e9e4e | 82:1eb0cdd17c76 |
---|---|
1 /* | 1 /* |
2 server.c | 2 server.c |
3 | 3 |
4 $Id: server.c 80 2000-05-13 15:36:35Z bears $ | 4 $Id: server.c 88 2000-05-14 16:15:08Z 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 |
122 noteInterest( void ) | 122 noteInterest( void ) |
123 { | 123 { |
124 FetchMode mode; | 124 FetchMode mode; |
125 | 125 |
126 Grp_setLastAccess( server.grp, time( NULL ) ); | 126 Grp_setLastAccess( server.grp, time( NULL ) ); |
127 if ( ! Grp_local ( server.grp ) && Cfg_autoSubscribe() && ! Online_true() ) | 127 if ( ! Grp_local ( server.grp ) && ! Online_true() ) |
128 { | 128 { |
129 Fetchlist_read(); | 129 Fetchlist_read(); |
130 if ( ! Fetchlist_contains( server.grp ) ) | 130 if ( ! Fetchlist_contains( server.grp ) ) |
131 { | 131 { |
132 if ( strcmp( Cfg_autoSubscribeMode(), "full" ) == 0 ) | 132 if ( Cfg_autoSubscribe() ) |
133 mode = FULL; | 133 { |
134 else if ( strcmp( Cfg_autoSubscribeMode(), "thread" ) == 0 ) | 134 if ( strcmp( Cfg_autoSubscribeMode(), "full" ) == 0 ) |
135 mode = THREAD; | 135 mode = FULL; |
136 else | 136 else if ( strcmp( Cfg_autoSubscribeMode(), "thread" ) == 0 ) |
137 mode = OVER; | 137 mode = THREAD; |
138 Fetchlist_add( server.grp, mode ); | 138 else |
139 Fetchlist_write(); | 139 mode = OVER; |
140 Pseudo_autoSubscribed(); | 140 Fetchlist_add( server.grp, mode ); |
141 } | 141 Fetchlist_write(); |
142 Pseudo_autoSubscribed(); | |
143 } | |
144 else if ( Cfg_infoAlways() ) | |
145 { | |
146 int first, last; | |
147 | |
148 /* Ensure new gen info for next time */ | |
149 first = Cont_first(); | |
150 last = Cont_last(); | |
151 | |
152 if ( first == last ) | |
153 first = last + 1; | |
154 | |
155 Grp_setFirstLast( Cont_grp(), first, last ); | |
156 } | |
157 } | |
142 } | 158 } |
143 } | 159 } |
144 | 160 |
145 static void | 161 static void |
146 putStat( unsigned int stat, const char *fmt, ... ) | 162 putStat( unsigned int stat, const char *fmt, ... ) |