From 25e38006dbd184883547d783f93701dd22210f3c Mon Sep 17 00:00:00 2001 From: Andrew Wilcox Date: Mon, 7 Mar 2016 01:02:19 -0600 Subject: [PATCH 1/4] core/m_part: Add AV2 description --- modules/core/m_part.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/core/m_part.c b/modules/core/m_part.c index cd26b6773..73e7277c5 100644 --- a/modules/core/m_part.c +++ b/modules/core/m_part.c @@ -41,6 +41,7 @@ #include "hook.h" static int m_part(struct MsgBuf *, struct Client *, struct Client *, int, const char **); +static const char part_desc[] = "Provides the PART command to leave a channel"; struct Message part_msgtab = { "PART", 0, 0, 0, 0, @@ -49,7 +50,7 @@ struct Message part_msgtab = { mapi_clist_av1 part_clist[] = { &part_msgtab, NULL }; -DECLARE_MODULE_AV2(part, NULL, NULL, part_clist, NULL, NULL, NULL, NULL, NULL); +DECLARE_MODULE_AV2(part, NULL, NULL, part_clist, NULL, NULL, NULL, NULL, part_desc); static void part_one_client(struct Client *client_p, struct Client *source_p, char *name, From 4dc7383a2fe264135762af64de45f5127af16364 Mon Sep 17 00:00:00 2001 From: Andrew Wilcox Date: Mon, 7 Mar 2016 01:05:02 -0600 Subject: [PATCH 2/4] core/m_quit: Add AV2 description --- modules/core/m_quit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/core/m_quit.c b/modules/core/m_quit.c index 472cab9e3..4c7691291 100644 --- a/modules/core/m_quit.c +++ b/modules/core/m_quit.c @@ -36,6 +36,7 @@ static int m_quit(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int ms_quit(struct MsgBuf *, struct Client *, struct Client *, int, const char **); +static const char quit_desc[] = "Provides the QUIT command to allow a user to leave the network"; struct Message quit_msgtab = { "QUIT", 0, 0, 0, 0, @@ -44,7 +45,7 @@ struct Message quit_msgtab = { mapi_clist_av1 quit_clist[] = { &quit_msgtab, NULL }; -DECLARE_MODULE_AV2(quit, NULL, NULL, quit_clist, NULL, NULL, NULL, NULL, NULL); +DECLARE_MODULE_AV2(quit, NULL, NULL, quit_clist, NULL, NULL, NULL, NULL, quit_desc); /* ** m_quit From 51588bbc9f6e473483a3488b75be76f33a6b22c0 Mon Sep 17 00:00:00 2001 From: Andrew Wilcox Date: Mon, 7 Mar 2016 01:06:35 -0600 Subject: [PATCH 3/4] core/m_server: Add AV2 description --- modules/core/m_server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/core/m_server.c b/modules/core/m_server.c index c25f02b9a..d83a3214e 100644 --- a/modules/core/m_server.c +++ b/modules/core/m_server.c @@ -43,6 +43,8 @@ static int mr_server(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int ms_server(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int ms_sid(struct MsgBuf *, struct Client *, struct Client *, int, const char **); +static const char m_server_desc[] = + "Provides the TS6 commands to introduce a new server to the network"; struct Message server_msgtab = { "SERVER", 0, 0, 0, 0, @@ -55,7 +57,7 @@ struct Message sid_msgtab = { mapi_clist_av1 server_clist[] = { &server_msgtab, &sid_msgtab, NULL }; -DECLARE_MODULE_AV2(server, NULL, NULL, server_clist, NULL, NULL, NULL, NULL, NULL); +DECLARE_MODULE_AV2(server, NULL, NULL, server_clist, NULL, NULL, NULL, NULL, m_server_desc); int bogus_host(const char *host); static int set_server_gecos(struct Client *, const char *); From 42c9851a5ddf7b15cb56ca4bd47bf25850506c8b Mon Sep 17 00:00:00 2001 From: Andrew Wilcox Date: Mon, 7 Mar 2016 01:09:07 -0600 Subject: [PATCH 4/4] core/m_squit: Add AV2 description --- modules/core/m_squit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/core/m_squit.c b/modules/core/m_squit.c index 9c72969d8..f5f1b295b 100644 --- a/modules/core/m_squit.c +++ b/modules/core/m_squit.c @@ -40,6 +40,7 @@ static int ms_squit(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int mo_squit(struct MsgBuf *, struct Client *, struct Client *, int, const char **); +static const char squit_desc[] = "Provides the SQUIT command to cause a server to quit"; struct Message squit_msgtab = { "SQUIT", 0, 0, 0, 0, @@ -48,7 +49,7 @@ struct Message squit_msgtab = { mapi_clist_av1 squit_clist[] = { &squit_msgtab, NULL }; -DECLARE_MODULE_AV2(squit, NULL, NULL, squit_clist, NULL, NULL, NULL, NULL, NULL); +DECLARE_MODULE_AV2(squit, NULL, NULL, squit_clist, NULL, NULL, NULL, NULL, squit_desc); struct squit_parms {