2016-09-16 19:12:29 +00:00
|
|
|
/* dummy channel type (>): just a global channel type */
|
2016-09-16 18:55:44 +00:00
|
|
|
|
|
|
|
#include "stdinc.h"
|
|
|
|
#include "modules.h"
|
|
|
|
#include "client.h"
|
|
|
|
#include "ircd.h"
|
2016-09-16 19:07:54 +00:00
|
|
|
#include "supported.h"
|
2016-09-16 18:55:44 +00:00
|
|
|
|
2016-09-16 19:12:29 +00:00
|
|
|
static const char chantype_desc[] = "Secondary global channel type (>)";
|
2016-09-16 18:55:44 +00:00
|
|
|
|
|
|
|
static int _modinit(void);
|
|
|
|
static void _moddeinit(void);
|
|
|
|
|
|
|
|
DECLARE_MODULE_AV2(chantype_dummy, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, chantype_desc);
|
|
|
|
|
|
|
|
static int
|
|
|
|
_modinit(void)
|
|
|
|
{
|
2016-09-16 19:12:29 +00:00
|
|
|
CharAttrs['>'] |= CHANPFX_C;
|
2016-09-16 19:07:54 +00:00
|
|
|
chantypes_update();
|
2016-09-16 18:55:44 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
_moddeinit(void)
|
|
|
|
{
|
2016-09-16 19:12:29 +00:00
|
|
|
CharAttrs['>'] &= ~CHANPFX_C;
|
2016-09-16 19:07:54 +00:00
|
|
|
chantypes_update();
|
2016-09-16 18:55:44 +00:00
|
|
|
}
|