]> jfr.im git - irc/quakenet/newserv.git/blob - helpmod2/hcensor.h
Initial Import
[irc/quakenet/newserv.git] / helpmod2 / hcensor.h
1 #ifndef HCENSOR_H
2 #define HCENSOR_H
3
4 #include "../lib/sstring.h"
5
6 typedef struct hcensor_struct
7 {
8 sstring *pattern;
9 sstring *reason; /* optional */
10 struct hcensor_struct *next;
11 } hcensor;
12
13 hcensor *hcensor_get_by_pattern(hcensor *, const char *);
14 hcensor *hcensor_get_by_index(hcensor *, int);
15 hcensor *hcensor_check(hcensor *, const char *); /* first matching pattern is returned, NULL if ok */
16 hcensor *hcensor_add(hcensor **, const char*, const char*);
17 hcensor *hcensor_del(hcensor **, hcensor *);
18 int hcensor_count(hcensor *);
19
20 void hcensor_del_all(hcensor **);
21
22 #endif