]> jfr.im git - solanum.git/blame - extensions/chantype_dummy.c
extensions/umode_hide_idle_time: mask times for hidden sources (#373)
[solanum.git] / extensions / chantype_dummy.c
CommitLineData
5a12d0b1 1/* dummy channel type (>): just a global channel type */
75980a5e
AC
2
3#include "stdinc.h"
4#include "modules.h"
5#include "client.h"
6#include "ircd.h"
1cfc0cd9 7#include "supported.h"
75980a5e 8
5a12d0b1 9static const char chantype_desc[] = "Secondary global channel type (>)";
75980a5e
AC
10
11static int _modinit(void);
12static void _moddeinit(void);
13
14DECLARE_MODULE_AV2(chantype_dummy, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, chantype_desc);
15
16static int
17_modinit(void)
18{
5a12d0b1 19 CharAttrs['>'] |= CHANPFX_C;
1cfc0cd9 20 chantypes_update();
75980a5e
AC
21
22 return 0;
23}
24
25static void
26_moddeinit(void)
27{
5a12d0b1 28 CharAttrs['>'] &= ~CHANPFX_C;
1cfc0cd9 29 chantypes_update();
75980a5e 30}