]>
Commit | Line | Data |
---|---|---|
1 | /* dummy channel type (>): just a global channel type */ | |
2 | ||
3 | #include "stdinc.h" | |
4 | #include "modules.h" | |
5 | #include "client.h" | |
6 | #include "ircd.h" | |
7 | #include "supported.h" | |
8 | ||
9 | static const char chantype_desc[] = "Secondary global channel type (>)"; | |
10 | ||
11 | static int _modinit(void); | |
12 | static void _moddeinit(void); | |
13 | ||
14 | DECLARE_MODULE_AV2(chantype_dummy, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, chantype_desc); | |
15 | ||
16 | static int | |
17 | _modinit(void) | |
18 | { | |
19 | CharAttrs['>'] |= CHANPFX_C; | |
20 | chantypes_update(); | |
21 | ||
22 | return 0; | |
23 | } | |
24 | ||
25 | static void | |
26 | _moddeinit(void) | |
27 | { | |
28 | CharAttrs['>'] &= ~CHANPFX_C; | |
29 | chantypes_update(); | |
30 | } |