Mercurial > noffle
comparison src/filter.c @ 212:21200ce10e68 noffle
[svn] filter post-status=mod|yes|no.
author | mirkol |
---|---|
date | Thu, 22 Nov 2001 12:04:45 +0000 |
parents | 24d4cd032da5 |
children | 0340b9c17edc |
comparison
equal
deleted
inserted
replaced
211:de96be6946a0 | 212:21200ce10e68 |
---|---|
1 /* | 1 /* |
2 filter.c | 2 filter.c |
3 | 3 |
4 Article filtering. | 4 Article filtering. |
5 | 5 |
6 $Id: filter.c 316 2001-10-31 11:44:53Z bears $ | 6 $Id: filter.c 331 2001-11-22 12:04:45Z mirkol $ |
7 */ | 7 */ |
8 | 8 |
9 #if HAVE_CONFIG_H | 9 #if HAVE_CONFIG_H |
10 #include <config.h> | 10 #include <config.h> |
11 #endif | 11 #endif |
14 #include "common.h" | 14 #include "common.h" |
15 #include "filter.h" | 15 #include "filter.h" |
16 #include "itemlist.h" | 16 #include "itemlist.h" |
17 #include "log.h" | 17 #include "log.h" |
18 #include "wildmat.h" | 18 #include "wildmat.h" |
19 #include "group.h" | |
19 | 20 |
20 struct | 21 struct |
21 { | 22 { |
22 int nFilters; | 23 int nFilters; |
23 int maxFilters; | 24 int maxFilters; |
145 case RULE_XPOSTS_GT: | 146 case RULE_XPOSTS_GT: |
146 if ( newsgroups == NULL ) | 147 if ( newsgroups == NULL ) |
147 return FALSE; | 148 return FALSE; |
148 ul = countGroups( newsgroups ); | 149 ul = countGroups( newsgroups ); |
149 return ( ul > r->data.amount ); | 150 return ( ul > r->data.amount ); |
151 | |
152 case RULE_POST_STATUS: | |
153 if ( Grp_postAllow( thisGrp ) == r->data.postAllow ) | |
154 return TRUE; | |
155 return FALSE; | |
156 | |
150 } | 157 } |
151 | 158 |
152 ASSERT( FALSE ); /* Shouldn't get here */ | 159 ASSERT( FALSE ); /* Shouldn't get here */ |
153 return 0; /* Keep compiler quiet */ | 160 return 0; /* Keep compiler quiet */ |
154 } | 161 } |