]>
jfr.im git - irc/quakenet/newserv.git/blob - helpmod2/hcensor.h
4 #include "../lib/sstring.h"
6 /* forward declarations */
7 struct hchannel_struct
;
18 typedef struct hcensor_struct
21 sstring
*reason
; /* optional */
24 struct hcensor_struct
*next
;
27 hcensor
*hcensor_get_by_pattern(hcensor
*, const char *);
28 hcensor
*hcensor_get_by_index(hcensor
*, int);
29 hcensor
*hcensor_check(hcensor
*, const char *); /* first matching pattern is returned, NULL if ok */
30 hcensor
*hcensor_add(hcensor
**, const char*, const char*, hcensor_type
);
31 hcensor
*hcensor_del(hcensor
**, hcensor
*);
32 /* Handle a censor match, if returnvalue is non-zero then the user was removed from channel */
33 int hcensor_match(struct hchannel_struct
*, struct huser_struct
*, hcensor
*);
34 const char *hcensor_get_typename(hcensor_type
);
36 int hcensor_count(hcensor
*);
38 void hcensor_del_all(hcensor
**);