]>
Commit | Line | Data |
---|---|---|
813c5b73 CP |
1 | #ifndef __GLINES_H |
2 | #define __GLINES_H | |
3 | ||
3c5c26a8 | 4 | #define MAXGLINEUSERS 500 |
a473a1be GB |
5 | |
6 | #define GLINE_IGNORE_TRUST 1 | |
8f128e0d GB |
7 | #define GLINE_ALWAYS_NICK 2 |
8 | #define GLINE_ALWAYS_USER 4 | |
9 | #define GLINE_NO_LIMIT 8 | |
10 | #define GLINE_SIMULATE 16 | |
a473a1be | 11 | |
8f128e0d GB |
12 | typedef struct gline_params { |
13 | int duration; | |
14 | const char *reason; | |
3c5c26a8 | 15 | const char *creator; |
8f128e0d GB |
16 | } gline_params; |
17 | ||
18 | typedef void (*gline_callback)(const char *, int, void *); | |
19 | ||
3c5c26a8 | 20 | void glinesetmask(const char *mask, int duration, const char *reason, const char *creator); |
ae8b0453 | 21 | void glineunsetmask(const char *mask); |
8f128e0d GB |
22 | |
23 | int glinesuggestbyip(const char *, struct irc_in_addr *, unsigned char, int, gline_callback callback, void *uarg); | |
24 | int glinesuggestbynick(nick *, int, gline_callback callback, void *uarg); | |
3c5c26a8 GB |
25 | int glinebyip(const char *, struct irc_in_addr *, unsigned char, int, const char *, int, const char *); |
26 | int glinebynick(nick *, int, const char *, int, const char *); | |
813c5b73 CP |
27 | |
28 | #endif |