extensions: add new module adding ^channels (which are just like #channels)

This commit is contained in:
William Pitcock 2016-09-16 13:55:44 -05:00
parent 01978a2c8c
commit 75980a5e2f
2 changed files with 28 additions and 0 deletions

View file

@ -6,6 +6,7 @@ LIBS += $(top_srcdir)/ircd/libircd.la
extensiondir=@moduledir@/extensions
extension_LTLIBRARIES = \
chantype_dummy.la \
chm_adminonly.la \
chm_operonly.la \
chm_operonly_compat.la \

View file

@ -0,0 +1,27 @@
/* dummy channel type (^): just a global channel type */
#include "stdinc.h"
#include "modules.h"
#include "client.h"
#include "ircd.h"
static const char chantype_desc[] = "Secondary global channel type (^)";
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)
{
CharAttrs['^'] |= CHANPFX_C;
return 0;
}
static void
_moddeinit(void)
{
CharAttrs['^'] &= ~CHANPFX_C;
}