]> jfr.im git - solanum.git/commitdiff
Give all extensions/m_* modules AV2 descriptions
authorElizabeth Myers <redacted>
Mon, 7 Mar 2016 09:40:51 +0000 (03:40 -0600)
committerElizabeth Myers <redacted>
Mon, 7 Mar 2016 09:40:51 +0000 (03:40 -0600)
13 files changed:
extensions/m_adminwall.c
extensions/m_echotags.c
extensions/m_extendchans.c
extensions/m_findforwards.c
extensions/m_identify.c
extensions/m_mkpasswd.c
extensions/m_ojoin.c
extensions/m_okick.c
extensions/m_omode.c
extensions/m_opme.c
extensions/m_roleplay.c
extensions/m_sendbans.c
extensions/m_webirc.c

index 9f492f9f66407651c69f3f9b24845efe56a5f764..1c7f20a1975d3a5ffb90bc644504fcc4f61450d4 100644 (file)
@@ -47,7 +47,11 @@ struct Message adminwall_msgtab = {
 
 
 mapi_clist_av1 adminwall_clist[] = { &adminwall_msgtab, NULL };
-DECLARE_MODULE_AV2(adminwall, NULL, NULL, adminwall_clist, NULL, NULL, NULL, NULL, NULL);
+
+static const char adminwall_desc[] =
+        "Provides the ADMINWALL command to send a message to all administrators";
+
+DECLARE_MODULE_AV2(adminwall, NULL, NULL, adminwall_clist, NULL, NULL, NULL, NULL, adminwall_desc);
 
 
 /*
index c000a08028363e4a46dc06ce9f47c342ef3d51b4..49f649c531d49953afa63639e6fef42d619d82bd 100644 (file)
@@ -7,13 +7,15 @@
 static int m_echotags(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
 
 struct Message echotags_msgtab = {
-  "ECHOTAGS", 0, 0, 0, 0,
-  { mg_ignore, {m_echotags, 0}, mg_ignore, mg_ignore, mg_ignore, {m_echotags, 0} }
+       "ECHOTAGS", 0, 0, 0, 0,
+       { mg_ignore, {m_echotags, 0}, mg_ignore, mg_ignore, mg_ignore, {m_echotags, 0} }
 };
 
 mapi_clist_av1 echotags_clist[] = { &echotags_msgtab, NULL };
 
-DECLARE_MODULE_AV2(echotags, NULL, NULL, echotags_clist, NULL, NULL, NULL, NULL, NULL);
+static const char echotags_desc = "A test module for tags";
+
+DECLARE_MODULE_AV2(echotags, NULL, NULL, echotags_clist, NULL, NULL, NULL, NULL, echotags_desc);
 
 static int
 m_echotags(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
index 939edbf9ec40a931e844c338c69de13bfbabfdfb..b3ce38b88ae80a759e0a623c97f2e1cbfca9d9f5 100644 (file)
@@ -41,7 +41,10 @@ struct Message extendchans_msgtab = {
 
 mapi_clist_av1 extendchans_clist[] = { &extendchans_msgtab, NULL };
 
-DECLARE_MODULE_AV2(extendchans, NULL, NULL, extendchans_clist, NULL, NULL, NULL, NULL, NULL);
+static const char extendchans_desc =
+       "Allow an oper or service to let a given user join more channels";
+
+DECLARE_MODULE_AV2(extendchans, NULL, NULL, extendchans_clist, NULL, NULL, NULL, NULL, extendchans_desc);
 
 static int
 mo_extendchans(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
@@ -62,7 +65,7 @@ mo_extendchans(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *
 
        if((target_p = find_chasing(source_p, parv[1], NULL)) == NULL)
                return 0;
-       
+
        /* Is the target user local? */
        if(MyClient(target_p))
        {
index 09a655193e0e85d12eea36d9077f8c367666d8f4..ff8efff45b954266acee395ff09a615ac407a7a6 100644 (file)
@@ -44,7 +44,9 @@ struct Message findforwards_msgtab = {
 
 mapi_clist_av1 findforwards_clist[] = { &findforwards_msgtab, NULL };
 
-DECLARE_MODULE_AV2(findforwards, NULL, NULL, findforwards_clist, NULL, NULL, NULL, NULL, NULL);
+static const char findfowards_desc = "Allows operators to find forwards to a given channel";
+
+DECLARE_MODULE_AV2(findforwards, NULL, NULL, findforwards_clist, NULL, NULL, NULL, NULL, findfowards_desc);
 
 /*
 ** mo_findforwards
index 9f2cb5ffc8741d577cc1e6a10276dccc77ab70d0..c2f26d807d8c5295cd7172950131f1e17c15bdd8 100644 (file)
@@ -59,7 +59,9 @@ mapi_clist_av1 identify_clist[] = {
        NULL
 };
 
-DECLARE_MODULE_AV2(identify, NULL, NULL, identify_clist, NULL, NULL, NULL, NULL, NULL);
+static const char identify_desc[] = "Adds the IDENTIFY alias that forwards to NickServ or ChanServ";
+
+DECLARE_MODULE_AV2(identify, NULL, NULL, identify_clist, NULL, NULL, NULL, NULL, identify_desc);
 
 static int m_identify(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
index 5981fbcc7225104dac0027c71259ca21a308b329..7b9352cec260aab0cfc77e0790d26586290e1d10 100644 (file)
@@ -36,7 +36,9 @@ struct Message mkpasswd_msgtab = {
 
 mapi_clist_av1 mkpasswd_clist[] = { &mkpasswd_msgtab, NULL };
 
-DECLARE_MODULE_AV2(mkpasswd, NULL, NULL, mkpasswd_clist, NULL, NULL, NULL, NULL, NULL);
+const char mkpasswd_desc[] = "Hash a password for use in ircd.conf";
+
+DECLARE_MODULE_AV2(mkpasswd, NULL, NULL, mkpasswd_clist, NULL, NULL, NULL, NULL, mkpasswd_desc);
 
 
 /* m_mkpasswd - mkpasswd message handler
index 7a1a29b9a852de65293736c9e51f5dd8f9403692..dec3fbe70df7ca035bbbc013dc730fe75c386862 100644 (file)
@@ -37,7 +37,6 @@
 
 static int mo_ojoin(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
 
-
 struct Message ojoin_msgtab = {
        "OJOIN", 0, 0, 0, 0,
        {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_ojoin, 2}}
@@ -45,7 +44,9 @@ struct Message ojoin_msgtab = {
 
 mapi_clist_av1 ojoin_clist[] = { &ojoin_msgtab, NULL };
 
-DECLARE_MODULE_AV2(ojoin, NULL, NULL, ojoin_clist, NULL, NULL, NULL, NULL, NULL);
+static const char ojoin_desc[] = "Allow admins to forcibly join channels with the OJOIN command";
+
+DECLARE_MODULE_AV2(ojoin, NULL, NULL, ojoin_clist, NULL, NULL, NULL, NULL, ojoin_desc);
 
 /*
 ** mo_ojoin
index b5397a09928ea1076b637241e2105beb1eefad3f..01da58abf4e43a364f3399d3cdc40b591d71c8c9 100644 (file)
@@ -48,7 +48,9 @@ struct Message okick_msgtab = {
 
 mapi_clist_av1 okick_clist[] = { &okick_msgtab, NULL };
 
-DECLARE_MODULE_AV2(okick, NULL, NULL, okick_clist, NULL, NULL, NULL, NULL, NULL);
+static const char okick_desc[] = "Allow admins to forcibly kick users from channels with the OKICK command";
+
+DECLARE_MODULE_AV2(okick, NULL, NULL, okick_clist, NULL, NULL, NULL, NULL, okick_desc);
 
 /*
 ** m_okick
index fdc141ed6f75b09de6aebd6fff70b901813f326e..91caf405baccf7a67fe185d3e95c27d5525ed6d1 100644 (file)
@@ -51,7 +51,9 @@ struct Message omode_msgtab = {
 
 mapi_clist_av1 omode_clist[] = { &omode_msgtab, NULL };
 
-DECLARE_MODULE_AV2(omode, NULL, NULL, omode_clist, NULL, NULL, NULL, NULL, NULL);
+static const char omode_desc[] = "Allow admins to forcibly change modes on channels with the OMODE command";
+
+DECLARE_MODULE_AV2(omode, NULL, NULL, omode_clist, NULL, NULL, NULL, NULL, omode_desc);
 
 /*
  * mo_omode - MODE command handler
index 11be4dbecdad2524c6251a9249f33b9831ab8afc..def7fe5639be5a38668994311a2a89729ef8e711 100644 (file)
@@ -43,8 +43,9 @@ struct Message opme_msgtab = {
 
 mapi_clist_av1 opme_clist[] = { &opme_msgtab, NULL };
 
-DECLARE_MODULE_AV2(opme, NULL, NULL, opme_clist, NULL, NULL, NULL, NULL, NULL);
+static const char opme_desc[] = "Allow admins to op themselves on opless channels";
 
+DECLARE_MODULE_AV2(opme, NULL, NULL, opme_clist, NULL, NULL, NULL, NULL, opme_desc);
 
 /*
 ** mo_opme
index 0e3f87093f41402d8e2de6335d3fe9752693a38b..6802f80b9df6195d8095e82f43820cd6dd704ccb 100644 (file)
@@ -29,6 +29,9 @@
 #include "packet.h"
 #include "messages.h"
 
+static const char roleplay_desc[] =
+       "Adds a roleplaying system that allows faked nicknames to talk in a channel set +N";
+
 static int m_scene(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
 static int m_fsay(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
 static int m_faction(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
@@ -95,7 +98,7 @@ struct Message roleplay_msgtab = {
 
 mapi_clist_av1 roleplay_clist[] = { &scene_msgtab, &ambiance_msgtab, &fsay_msgtab, &faction_msgtab, &npc_msgtab, &npca_msgtab, &roleplay_msgtab, NULL };
 
-DECLARE_MODULE_AV2(roleplay, _modinit, _moddeinit, roleplay_clist, NULL, NULL, NULL, NULL, NULL);
+DECLARE_MODULE_AV2(roleplay, _modinit, _moddeinit, roleplay_clist, NULL, NULL, NULL, NULL, roleplay_desc);
 
 static int
 m_scene(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
index ec9d049e91078e562306a3c6c57ac1dca2865009..b08f7c2cdceceac2ed0c358f411e8dd4f51be98c 100644 (file)
@@ -57,7 +57,10 @@ mapi_clist_av1 sendbans_clist[] = {
        NULL
 };
 
-DECLARE_MODULE_AV2(sendbans, NULL, NULL, sendbans_clist, NULL, NULL, NULL, NULL, NULL);
+static const char sendbands_desc[] =
+       "Adds the ability to send all permanent RESVs and XLINEs to given server";
+
+DECLARE_MODULE_AV2(sendbans, NULL, NULL, sendbans_clist, NULL, NULL, NULL, NULL, sendbands_desc);
 
 static const char *expand_xline(const char *mask)
 {
index c2bcf80919fb7f0a31e819917a7d5ce0e0bfe269..fe0a4ae2a5d449680a6643af435cf1ed2a3010fb 100644 (file)
@@ -61,7 +61,10 @@ struct Message webirc_msgtab = {
 };
 
 mapi_clist_av1 webirc_clist[] = { &webirc_msgtab, NULL };
-DECLARE_MODULE_AV2(webirc, NULL, NULL, webirc_clist, NULL, NULL, NULL, NULL, NULL);
+
+static const char webirc_desc[] = "Adds support for the WebIRC system";
+
+DECLARE_MODULE_AV2(webirc, NULL, NULL, webirc_clist, NULL, NULL, NULL, NULL, webirc_desc);
 
 /*
  * mr_webirc - webirc message handler