]> jfr.im git - irc/quakenet/newserv.git/blob - helpmod2/hchanban.h
Large reorganisation of all Makefiles, including new configure script.
[irc/quakenet/newserv.git] / helpmod2 / hchanban.h
1 #ifndef HCHANBAN_H
2 #define HCHANBAN_H
3
4 #include <time.h>
5 #include "hchannel.h"
6 #include "../lib/sstring.h"
7
8 typedef struct hchanban_struct
9 {
10 hchannel *hchan;
11 sstring *banmask;
12 time_t expiration;
13
14 struct hchanban_struct *next;
15 } hchanban;
16
17 extern hchanban *hchanbans;
18
19 /* This does not really add a chanban, use helpmod_setban instead */
20 hchanban *hchanban_add(hchannel*, const char*, time_t);
21 hchanban *hchanban_del(hchanban*);
22 hchanban *hchanban_del_all(void);
23
24 hchanban *hchanban_get(hchannel*, const char*);
25
26 void hchanban_schedule_entry(hchanban*);
27
28 #endif