]> jfr.im git - irc/quakenet/newserv.git/blob - glines/glines.h
Implement GLINE_SIMULATE.
[irc/quakenet/newserv.git] / glines / glines.h
1 #ifndef __GLINES_H
2 #define __GLINES_H
3
4 #define MAXGLINEUSERS 100
5
6 #define GLINE_IGNORE_TRUST 1
7 #define GLINE_ALWAYS_NICK 2
8 #define GLINE_ALWAYS_USER 4
9 #define GLINE_NO_LIMIT 8
10 #define GLINE_SIMULATE 16
11
12 typedef struct gline_params {
13 int duration;
14 const char *reason;
15 } gline_params;
16
17 typedef void (*gline_callback)(const char *, int, void *);
18
19 void glinesetmask(const char *mask, int duration, const char *reason);
20 void glineunsetmask(const char *mask, int duration, const char *reason);
21
22 int glinesuggestbyip(const char *, struct irc_in_addr *, unsigned char, int, gline_callback callback, void *uarg);
23 int glinesuggestbynick(nick *, int, gline_callback callback, void *uarg);
24 int glinebyip(const char *, struct irc_in_addr *, unsigned char, int, const char *, int);
25 int glinebynick(nick *, int, const char *, int);
26
27 #endif