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