]> jfr.im git - solanum.git/blobdiff - extensions/chm_operonly.c
Merge pull request #302 from edk0/sasl-usercloak
[solanum.git] / extensions / chm_operonly.c
index 5cb87ab31be2ab5d53590eb1b85d02b71cc8f6c7..ba4df9dd8f9b6ee9206d1414e4c7891d51598cc4 100644 (file)
@@ -10,6 +10,9 @@
 #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[] = {
@@ -19,10 +22,6 @@ 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)
 {
@@ -40,7 +39,7 @@ _moddeinit(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)