]> jfr.im git - solanum.git/blobdiff - extensions/chm_quietunreg_compat.c
callerid: actually the guard should be for source_p
[solanum.git] / extensions / chm_quietunreg_compat.c
index a742d13970372808431ab4c43effcc603abdfe9a..6afe8e25a047ece87eb5486b46fa3609dcfebaf2 100644 (file)
@@ -8,15 +8,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_quietunreg_compat_desc[] =
+       "Adds an emulated channel mode +R which is converted into mode +q $~a";
 
 static int _modinit(void);
 static void _moddeinit(void);
@@ -24,7 +19,7 @@ static void chm_quietunreg(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_quietunreg_compat, _modinit, _moddeinit, NULL, NULL, NULL, "$Revision$");
+DECLARE_MODULE_AV2(chm_quietunreg_compat, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, chm_quietunreg_compat_desc);
 
 static int
 _modinit(void)