#include "numeric.h"
#include "chmode.h"
+static const char chm_operonly_desc[] =
+ "Adds channel mode +O which makes a channel operator-only";
+
static void h_can_join(hook_data_channel *);
mapi_hfn_list_av1 operonly_hfnlist[] = {
static unsigned int mymode;
-/* This is a simple example of how to use dynamic channel modes.
- * Not tested enough yet, use at own risk.
- * -- dwr
- */
static int
_modinit(void)
{
cflag_orphan('O');
}
-DECLARE_MODULE_AV1(chm_operonly, _modinit, _moddeinit, NULL, NULL, operonly_hfnlist, "$Revision$");
+DECLARE_MODULE_AV2(chm_operonly, _modinit, _moddeinit, NULL, NULL, operonly_hfnlist, NULL, NULL, chm_operonly_desc);
static void
h_can_join(hook_data_channel *data)