]>
Commit | Line | Data |
---|---|---|
dbbe26fa | 1 | /* SSL extban type: matches ssl users */ |
0e51998b VY |
2 | |
3 | #include "stdinc.h" | |
4 | #include "modules.h" | |
5 | #include "client.h" | |
6 | #include "ircd.h" | |
7 | ||
8 | static int _modinit(void); | |
9 | static void _moddeinit(void); | |
10 | static int eb_ssl(const char *data, struct Client *client_p, struct Channel *chptr, long mode_type); | |
11 | ||
12 | DECLARE_MODULE_AV1(extb_ssl, _modinit, _moddeinit, NULL, NULL, NULL, "$Revision$"); | |
13 | ||
14 | static int | |
15 | _modinit(void) | |
16 | { | |
17 | extban_table['z'] = eb_ssl; | |
18 | ||
19 | return 0; | |
20 | } | |
21 | ||
22 | static void | |
23 | _moddeinit(void) | |
24 | { | |
25 | extban_table['z'] = NULL; | |
26 | } | |
27 | ||
28 | static int eb_ssl(const char *data, struct Client *client_p, | |
29 | struct Channel *chptr, long mode_type) | |
30 | { | |
31 | ||
32 | (void)chptr; | |
33 | (void)mode_type; | |
0e51998b VY |
34 | if (data != NULL) |
35 | return EXTBAN_INVALID; | |
36 | return IsSSLClient(client_p) ? EXTBAN_MATCH : EXTBAN_NOMATCH; | |
37 | } |