]> jfr.im git - solanum.git/blobdiff - extensions/chm_operonly_compat.c
Merge pull request #302 from edk0/sasl-usercloak
[solanum.git] / extensions / chm_operonly_compat.c
index f30104eb70ec72fd72cf23ea0949a1a42f283ea7..ef8f0b3eedc8b75c4959f157c45f5d1391883ecb 100644 (file)
@@ -7,18 +7,10 @@
 #include "client.h"
 #include "hook.h"
 #include "ircd.h"
+#include "chmode.h"
 
-/* XXX prototypes */
-void chm_ban(struct Client *source_p, struct Channel *chptr,
-       int alevel, int parc, int *parn,
-       const char **parv, int *errors, int dir, char c, long mode_type);
-void chm_nosuch(struct Client *source_p, struct Channel *chptr,
-       int alevel, int parc, int *parn,
-       const char **parv, int *errors, int dir, char c, long mode_type);
-void chm_simple(struct Client *source_p, struct Channel *chptr,
-       int alevel, int parc, int *parn,
-       const char **parv, int *errors, int dir, char c, long mode_type);
-/* end yucky prototypes */
+static const char chm_operonly_compat[] =
+       "Adds an emulated channel mode +O which is converted into mode +i and +I $o";
 
 static int _modinit(void);
 static void _moddeinit(void);
@@ -26,7 +18,7 @@ static void chm_operonly(struct Client *source_p, struct Channel *chptr,
        int alevel, int parc, int *parn,
        const char **parv, int *errors, int dir, char c, long mode_type);
 
-DECLARE_MODULE_AV1(chm_operonly_compat, _modinit, _moddeinit, NULL, NULL, NULL, "$Revision$");
+DECLARE_MODULE_AV2(chm_operonly_compat, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, chm_operonly_compat);
 
 static int
 _modinit(void)