]> jfr.im git - irc/quakenet/newserv.git/blame - helpmod2/hchanban.h
CHANSERV: fix issue where chanserv_relay doesn't wait for db to be loaded before...
[irc/quakenet/newserv.git] / helpmod2 / hchanban.h
CommitLineData
c86edd1d
Q
1#ifndef HCHANBAN_H
2#define HCHANBAN_H
3
4#include <time.h>
5#include "hchannel.h"
6#include "../lib/sstring.h"
7
8typedef struct hchanban_struct
9{
10 hchannel *hchan;
11 sstring *banmask;
12 time_t expiration;
13
14 struct hchanban_struct *next;
15} hchanban;
16
17extern hchanban *hchanbans;
18
9af95c3d 19/* This does not really add a chanban, use helpmod_setban instead */
c86edd1d
Q
20hchanban *hchanban_add(hchannel*, const char*, time_t);
21hchanban *hchanban_del(hchanban*);
22hchanban *hchanban_del_all(void);
23
24hchanban *hchanban_get(hchannel*, const char*);
25
e908ecfa 26void hchanban_schedule_entry(hchanban*);
c86edd1d
Q
27
28#endif