From 3abc337fe1ef89bfe5539fe60e441ece2fd4be8e Mon Sep 17 00:00:00 2001 From: Andrew Wilcox Date: Mon, 7 Mar 2016 02:05:28 -0600 Subject: [PATCH] modules: Add AV2 descriptions to all m_s* modules --- modules/m_sasl.c | 3 ++- modules/m_scan.c | 4 +++- modules/m_services.c | 4 +++- modules/m_set.c | 3 ++- modules/m_signon.c | 3 ++- modules/m_snote.c | 3 ++- modules/m_starttls.c | 3 ++- modules/m_stats.c | 4 +++- modules/m_svinfo.c | 4 +++- 9 files changed, 22 insertions(+), 9 deletions(-) diff --git a/modules/m_sasl.c b/modules/m_sasl.c index 6feec890..5efdf8be 100644 --- a/modules/m_sasl.c +++ b/modules/m_sasl.c @@ -44,6 +44,7 @@ static int m_authenticate(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int me_sasl(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int me_mechlist(struct MsgBuf *, struct Client *, struct Client *, int, const char **); +static const char sasl_desc[] = "Provides SASL authentication support"; static void abort_sasl(struct Client *); static void abort_sasl_exit(hook_data_client_exit *); @@ -115,7 +116,7 @@ _moddeinit(void) capability_orphan(cli_capindex, "sasl"); } -DECLARE_MODULE_AV2(sasl, _modinit, _moddeinit, sasl_clist, NULL, sasl_hfnlist, NULL, NULL, NULL); +DECLARE_MODULE_AV2(sasl, _modinit, _moddeinit, sasl_clist, NULL, sasl_hfnlist, NULL, NULL, sasl_desc); static int m_authenticate(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, diff --git a/modules/m_scan.c b/modules/m_scan.c index 681990ea..db41c3bb 100644 --- a/modules/m_scan.c +++ b/modules/m_scan.c @@ -52,6 +52,8 @@ static int mo_scan(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int scan_umodes(struct MsgBuf *, struct Client *, struct Client *, int, const char **); /*static int scan_cmodes(struct MsgBuf *, struct Client *, struct Client *, int, const char **);*/ +static const char scan_desc[] = + "Provides the SCAN command to show users that have a mode set or cleared"; struct Message scan_msgtab = { "SCAN", 0, 0, 0, 0, @@ -59,7 +61,7 @@ struct Message scan_msgtab = { }; mapi_clist_av1 scan_clist[] = { &scan_msgtab, NULL }; -DECLARE_MODULE_AV2(scan, NULL, NULL, scan_clist, NULL, NULL, NULL, NULL, NULL); +DECLARE_MODULE_AV2(scan, NULL, NULL, scan_clist, NULL, NULL, NULL, NULL, scan_desc); typedef int (*scan_handler)(struct MsgBuf *, struct Client *, struct Client *, int, const char **); diff --git a/modules/m_services.c b/modules/m_services.c index 3b7e0475..01d21be8 100644 --- a/modules/m_services.c +++ b/modules/m_services.c @@ -58,6 +58,8 @@ static int me_login(struct MsgBuf *, struct Client *, struct Client *, int, cons static int me_rsfnc(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int me_nickdelay(struct MsgBuf *, struct Client *, struct Client *, int, const char **); +static const char services_desc[] = "Provides support for running a services daemon"; + static void h_svc_server_introduced(hook_data_client *); static void h_svc_whois(hook_data_client *); static void h_svc_stats(hook_data_int *); @@ -94,7 +96,7 @@ mapi_hfn_list_av1 services_hfnlist[] = { { NULL, NULL } }; -DECLARE_MODULE_AV2(services, _modinit, _moddeinit, services_clist, NULL, services_hfnlist, NULL, NULL, NULL); +DECLARE_MODULE_AV2(services, _modinit, _moddeinit, services_clist, NULL, services_hfnlist, NULL, NULL, services_desc); static int _modinit(void) diff --git a/modules/m_set.c b/modules/m_set.c index a2e5059b..ea15259e 100644 --- a/modules/m_set.c +++ b/modules/m_set.c @@ -40,6 +40,7 @@ #include "modules.h" static int mo_set(struct MsgBuf *, struct Client *, struct Client *, int, const char **); +static const char set_desc[] = "Provides the SET command to change server parameters"; struct Message set_msgtab = { "SET", 0, 0, 0, 0, @@ -47,7 +48,7 @@ struct Message set_msgtab = { }; mapi_clist_av1 set_clist[] = { &set_msgtab, NULL }; -DECLARE_MODULE_AV2(set, NULL, NULL, set_clist, NULL, NULL, NULL, NULL, NULL); +DECLARE_MODULE_AV2(set, NULL, NULL, set_clist, NULL, NULL, NULL, NULL, set_desc); /* Structure used for the SET table itself */ struct SetStruct diff --git a/modules/m_signon.c b/modules/m_signon.c index 20f6b42a..c933ae66 100644 --- a/modules/m_signon.c +++ b/modules/m_signon.c @@ -51,6 +51,7 @@ static int me_svslogin(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int ms_signon(struct MsgBuf *, struct Client *, struct Client *, int, const char **); +static const char signon_desc[] = "Provides account login/logout support for services"; static void send_signon(struct Client *, struct Client *, const char *, const char *, const char *, unsigned int, const char *); @@ -67,7 +68,7 @@ mapi_clist_av1 signon_clist[] = { &svslogin_msgtab, &signon_msgtab, NULL }; -DECLARE_MODULE_AV2(signon, NULL, NULL, signon_clist, NULL, NULL, NULL, NULL, NULL); +DECLARE_MODULE_AV2(signon, NULL, NULL, signon_clist, NULL, NULL, NULL, NULL, signon_desc); #define NICK_VALID 1 #define USER_VALID 2 diff --git a/modules/m_snote.c b/modules/m_snote.c index a381e380..9d92a00b 100644 --- a/modules/m_snote.c +++ b/modules/m_snote.c @@ -49,6 +49,7 @@ #include "modules.h" static int me_snote(struct MsgBuf *, struct Client *, struct Client *, int, const char **); +static const char snote_desc[] = "Provides server notices via the SNOTE command"; struct Message snote_msgtab = { "SNOTE", 0, 0, 0, 0, @@ -56,7 +57,7 @@ struct Message snote_msgtab = { }; mapi_clist_av1 snote_clist[] = { &snote_msgtab, NULL }; -DECLARE_MODULE_AV2(snote, NULL, NULL, snote_clist, NULL, NULL, NULL, NULL, NULL); +DECLARE_MODULE_AV2(snote, NULL, NULL, snote_clist, NULL, NULL, NULL, NULL, snote_desc); /* * me_snote diff --git a/modules/m_starttls.c b/modules/m_starttls.c index 3a152104..5d87f0b8 100644 --- a/modules/m_starttls.c +++ b/modules/m_starttls.c @@ -34,6 +34,7 @@ #include "logger.h" static int mr_starttls(struct MsgBuf *, struct Client *, struct Client *, int, const char **); +static const char starttls_desc[] = "Provides the tls CAP and STARTTLS command"; struct Message starttls_msgtab = { "STARTTLS", 0, 0, 0, 0, @@ -61,7 +62,7 @@ _moddeinit(void) #endif } -DECLARE_MODULE_AV2(starttls, _modinit, _moddeinit, starttls_clist, NULL, NULL, NULL, NULL, NULL); +DECLARE_MODULE_AV2(starttls, _modinit, _moddeinit, starttls_clist, NULL, NULL, NULL, NULL, starttls_desc); static int mr_starttls(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) diff --git a/modules/m_stats.c b/modules/m_stats.c index 50fc2b40..a2cf3ceb 100644 --- a/modules/m_stats.c +++ b/modules/m_stats.c @@ -50,6 +50,8 @@ #include "sslproc.h" static int m_stats (struct MsgBuf *, struct Client *, struct Client *, int, const char **); +static const char stats_desc[] = + "Provides the STATS command to inspect various server/network information"; struct Message stats_msgtab = { "STATS", 0, 0, 0, 0, @@ -66,7 +68,7 @@ mapi_hlist_av1 stats_hlist[] = { { NULL, NULL } }; -DECLARE_MODULE_AV2(stats, NULL, NULL, stats_clist, stats_hlist, NULL, NULL, NULL, NULL); +DECLARE_MODULE_AV2(stats, NULL, NULL, stats_clist, stats_hlist, NULL, NULL, NULL, stats_desc); const char *Lformat = "%s %u %u %u %u %u :%u %u %s"; diff --git a/modules/m_svinfo.c b/modules/m_svinfo.c index 9e2d07ba..05770ada 100644 --- a/modules/m_svinfo.c +++ b/modules/m_svinfo.c @@ -36,6 +36,8 @@ #include "modules.h" static int ms_svinfo(struct MsgBuf *, struct Client *, struct Client *, int, const char **); +static const char svinfo_desc[] = + "Provides TS6 SVINFO command to ensure version and clock synchronisation"; struct Message svinfo_msgtab = { "SVINFO", 0, 0, 0, 0, @@ -43,7 +45,7 @@ struct Message svinfo_msgtab = { }; mapi_clist_av1 svinfo_clist[] = { &svinfo_msgtab, NULL }; -DECLARE_MODULE_AV2(svinfo, NULL, NULL, svinfo_clist, NULL, NULL, NULL, NULL, NULL); +DECLARE_MODULE_AV2(svinfo, NULL, NULL, svinfo_clist, NULL, NULL, NULL, NULL, svinfo_desc); /* * ms_svinfo - SVINFO message handler