From be9c3979520b196ac324ef25a88b4539183a0dc3 Mon Sep 17 00:00:00 2001 From: Andrew Wilcox Date: Mon, 7 Mar 2016 02:27:32 -0600 Subject: [PATCH] modules: Add AV2 descriptions to all m_t* modules --- modules/m_tb.c | 4 +++- modules/m_testline.c | 3 ++- modules/m_testmask.c | 4 +++- modules/m_tginfo.c | 3 ++- modules/m_time.c | 4 +++- modules/m_topic.c | 4 +++- modules/m_trace.c | 4 +++- 7 files changed, 19 insertions(+), 7 deletions(-) diff --git a/modules/m_tb.c b/modules/m_tb.c index 769f773ff..a66dab6b6 100644 --- a/modules/m_tb.c +++ b/modules/m_tb.c @@ -44,6 +44,8 @@ static int ms_tb(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]); static int ms_etb(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]); +static const char tb_desc[] = + "Provides TS6 TB and ETB commands for topic bursting between servers"; struct Message tb_msgtab = { "TB", 0, 0, 0, 0, @@ -56,7 +58,7 @@ struct Message etb_msgtab = { }; mapi_clist_av1 tb_clist[] = { &tb_msgtab, &etb_msgtab, NULL }; -DECLARE_MODULE_AV2(tb, NULL, NULL, tb_clist, NULL, NULL, NULL, NULL, NULL); +DECLARE_MODULE_AV2(tb, NULL, NULL, tb_clist, NULL, NULL, NULL, NULL, tb_desc); /* m_tb() * diff --git a/modules/m_testline.c b/modules/m_testline.c index 302ec86ec..81358ae4a 100644 --- a/modules/m_testline.c +++ b/modules/m_testline.c @@ -41,6 +41,7 @@ static int mo_testline(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int mo_testgecos(struct MsgBuf *, struct Client *, struct Client *, int, const char **); +static const char testline_desc[] = "Provides the ability to test I/K/D/X lines and RESVs"; struct Message testline_msgtab = { "TESTLINE", 0, 0, 0, 0, @@ -52,7 +53,7 @@ struct Message testgecos_msgtab = { }; mapi_clist_av1 testline_clist[] = { &testline_msgtab, &testgecos_msgtab, NULL }; -DECLARE_MODULE_AV2(testline, NULL, NULL, testline_clist, NULL, NULL, NULL, NULL, NULL); +DECLARE_MODULE_AV2(testline, NULL, NULL, testline_clist, NULL, NULL, NULL, NULL, testline_desc); static int mo_testline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) diff --git a/modules/m_testmask.c b/modules/m_testmask.c index c46b0e0e4..782be8a87 100644 --- a/modules/m_testmask.c +++ b/modules/m_testmask.c @@ -48,6 +48,8 @@ static int mo_testmask(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]); +static const char testmask_desc[] = + "Provides the TESTMASK command to show the number of clients matching a hostmask or GECOS"; struct Message testmask_msgtab = { "TESTMASK", 0, 0, 0, 0, @@ -55,7 +57,7 @@ struct Message testmask_msgtab = { }; mapi_clist_av1 testmask_clist[] = { &testmask_msgtab, NULL }; -DECLARE_MODULE_AV2(testmask, NULL, NULL, testmask_clist, NULL, NULL, NULL, NULL, NULL); +DECLARE_MODULE_AV2(testmask, NULL, NULL, testmask_clist, NULL, NULL, NULL, NULL, testmask_desc); static const char *empty_sockhost = "255.255.255.255"; static const char *spoofed_sockhost = "0"; diff --git a/modules/m_tginfo.c b/modules/m_tginfo.c index 06178ba6d..027b23110 100644 --- a/modules/m_tginfo.c +++ b/modules/m_tginfo.c @@ -40,6 +40,7 @@ #include "s_newconf.h" /* add_tgchange */ static int me_tginfo(struct MsgBuf *, struct Client *, struct Client *, int, const char **); +static const char tginfo_desc[] = "Processes target change notifications from other servers"; struct Message tginfo_msgtab = { "TGINFO", 0, 0, 0, 0, @@ -48,7 +49,7 @@ struct Message tginfo_msgtab = { mapi_clist_av1 tginfo_clist[] = { &tginfo_msgtab, NULL }; -DECLARE_MODULE_AV2(tginfo, NULL, NULL, tginfo_clist, NULL, NULL, NULL, NULL, NULL); +DECLARE_MODULE_AV2(tginfo, NULL, NULL, tginfo_clist, NULL, NULL, NULL, NULL, tginfo_desc); /* ** me_tginfo diff --git a/modules/m_time.c b/modules/m_time.c index a889dabc1..9d7d3ec52 100644 --- a/modules/m_time.c +++ b/modules/m_time.c @@ -36,6 +36,8 @@ static int m_time(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static char *date(void); +static const char time_desc[] = + "Provides the TIME command to show the current server time": struct Message time_msgtab = { "TIME", 0, 0, 0, 0, @@ -43,7 +45,7 @@ struct Message time_msgtab = { }; mapi_clist_av1 time_clist[] = { &time_msgtab, NULL }; -DECLARE_MODULE_AV2(time, NULL, NULL, time_clist, NULL, NULL, NULL, NULL, NULL); +DECLARE_MODULE_AV2(time, NULL, NULL, time_clist, NULL, NULL, NULL, NULL, time_desc); static const char *months[] = { "January", "February", "March", "April", diff --git a/modules/m_topic.c b/modules/m_topic.c index ab292f799..cfaa7833c 100644 --- a/modules/m_topic.c +++ b/modules/m_topic.c @@ -43,6 +43,8 @@ static int m_topic(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int ms_topic(struct MsgBuf *, struct Client *, struct Client *, int, const char **); +static const char topic_desc[] = + "Provides the TOPIC command to set, remove, and inspect channel topics"; struct Message topic_msgtab = { "TOPIC", 0, 0, 0, 0, @@ -50,7 +52,7 @@ struct Message topic_msgtab = { }; mapi_clist_av1 topic_clist[] = { &topic_msgtab, NULL }; -DECLARE_MODULE_AV2(topic, NULL, NULL, topic_clist, NULL, NULL, NULL, NULL, NULL); +DECLARE_MODULE_AV2(topic, NULL, NULL, topic_clist, NULL, NULL, NULL, NULL, topic_desc); /* * m_topic diff --git a/modules/m_trace.c b/modules/m_trace.c index 239b224d0..245577b4a 100644 --- a/modules/m_trace.c +++ b/modules/m_trace.c @@ -41,6 +41,8 @@ #include "modules.h" static int m_trace(struct MsgBuf *, struct Client *, struct Client *, int, const char **); +static const char trace_desc[] = + "Provides the TRACE command to trace the route to a client or server"; static void trace_spy(struct Client *, struct Client *); @@ -56,7 +58,7 @@ mapi_hlist_av1 trace_hlist[] = { { "doing_trace", &doing_trace_hook }, { NULL, NULL } }; -DECLARE_MODULE_AV2(trace, NULL, NULL, trace_clist, trace_hlist, NULL, NULL, NULL, NULL); +DECLARE_MODULE_AV2(trace, NULL, NULL, trace_clist, trace_hlist, NULL, NULL, NULL, trace_desc); static void count_downlinks(struct Client *server_p, int *pservcount, int *pusercount); static int report_this_status(struct Client *source_p, struct Client *target_p);