]> jfr.im git - solanum.git/blobdiff - extensions/chm_sslonly_compat.c
Use const hook data where possible
[solanum.git] / extensions / chm_sslonly_compat.c
index 3f91e08b325d5de56a64e6cd5273de768fb5c586..9ee1ca251ce6d09a33665bf30a5d840ac96426d5 100644 (file)
@@ -7,15 +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);
-/* end yucky prototypes */
+static const char chm_sslonly_compat_desc[] =
+       "Adds an emulated channel mode +S which is converted into mode +b $~z";
 
 static int _modinit(void);
 static void _moddeinit(void);
@@ -23,7 +18,7 @@ static void chm_sslonly(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_sslonly_compat, _modinit, _moddeinit, NULL, NULL, NULL, "$Revision$");
+DECLARE_MODULE_AV2(chm_sslonly_compat, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, chm_sslonly_compat_desc);
 
 static int
 _modinit(void)