]> jfr.im git - solanum.git/blob - extensions/chantype_dummy.c
extensions: add new module adding ^channels (which are just like #channels)
[solanum.git] / extensions / chantype_dummy.c
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
8 static const char chantype_desc[] = "Secondary global channel type (^)";
9
10 static int _modinit(void);
11 static void _moddeinit(void);
12
13 DECLARE_MODULE_AV2(chantype_dummy, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, chantype_desc);
14
15 static int
16 _modinit(void)
17 {
18 CharAttrs['^'] |= CHANPFX_C;
19
20 return 0;
21 }
22
23 static void
24 _moddeinit(void)
25 {
26 CharAttrs['^'] &= ~CHANPFX_C;
27 }