0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 16:34:13 +01:00

modules: Add AV2 descriptions to all m_p* modules

This commit is contained in:
Andrew Wilcox 2016-03-07 01:47:40 -06:00
parent 3c88406edc
commit d5d3540913
5 changed files with 12 additions and 5 deletions

View file

@ -36,6 +36,7 @@
#include "s_conf.h"
static int mr_pass(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static const char pass_desc[] = "Provides the PASS command to authenticate clients and servers";
struct Message pass_msgtab = {
"PASS", 0, 0, 0, 0,
@ -43,7 +44,7 @@ struct Message pass_msgtab = {
};
mapi_clist_av1 pass_clist[] = { &pass_msgtab, NULL };
DECLARE_MODULE_AV2(pass, NULL, NULL, pass_clist, NULL, NULL, NULL, NULL, NULL);
DECLARE_MODULE_AV2(pass, NULL, NULL, pass_clist, NULL, NULL, NULL, NULL, pass_desc);
/*
* m_pass() - Added Sat, 4 March 1989

View file

@ -37,6 +37,8 @@
static int m_ping(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static int ms_ping(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static const char ping_desc[] =
"Provides the PING command to ensure a client or server is still alive";
struct Message ping_msgtab = {
"PING", 0, 0, 0, 0,
@ -44,7 +46,7 @@ struct Message ping_msgtab = {
};
mapi_clist_av1 ping_clist[] = { &ping_msgtab, NULL };
DECLARE_MODULE_AV2(ping, NULL, NULL, ping_clist, NULL, NULL, NULL, NULL, NULL);
DECLARE_MODULE_AV2(ping, NULL, NULL, ping_clist, NULL, NULL, NULL, NULL, ping_desc);
/*
** m_ping

View file

@ -40,6 +40,7 @@
static int mr_pong(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static int ms_pong(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static const char pong_desc[] = "Provides the PONG command to respond to a PING message";
struct Message pong_msgtab = {
"PONG", 0, 0, 0, 0,
@ -47,7 +48,7 @@ struct Message pong_msgtab = {
};
mapi_clist_av1 pong_clist[] = { &pong_msgtab, NULL };
DECLARE_MODULE_AV2(pong, NULL, NULL, pong_clist, NULL, NULL, NULL, NULL, NULL);
DECLARE_MODULE_AV2(pong, NULL, NULL, pong_clist, NULL, NULL, NULL, NULL, pong_desc);
static int
ms_pong(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])

View file

@ -34,6 +34,8 @@
#include "s_conf.h"
static int mr_dumb_proxy(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static const char post_desc[] =
"Ensure Web forms/proxies cannot connect by disconnecting on POST, GET, and PUT";
struct Message post_msgtab = {
"POST", 0, 0, 0, 0,
@ -52,7 +54,7 @@ struct Message put_msgtab = {
mapi_clist_av1 post_clist[] = {
&post_msgtab, &get_msgtab, &put_msgtab, NULL
};
DECLARE_MODULE_AV2(post, NULL, NULL, post_clist, NULL, NULL, NULL, NULL, NULL);
DECLARE_MODULE_AV2(post, NULL, NULL, post_clist, NULL, NULL, NULL, NULL, post_desc);
/*

View file

@ -43,6 +43,7 @@
static int m_privs(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
static int me_privs(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
static int mo_privs(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
static const char privs_desc[] = "Provides the PRIVS command to inspect an operator's privileges";
struct Message privs_msgtab = {
"PRIVS", 0, 0, 0, 0,
@ -73,7 +74,7 @@ static struct mode_table auth_client_table[] = {
{NULL, 0}
};
DECLARE_MODULE_AV2(privs, NULL, NULL, privs_clist, NULL, NULL, NULL, NULL, NULL);
DECLARE_MODULE_AV2(privs, NULL, NULL, privs_clist, NULL, NULL, NULL, NULL, privs_desc);
static void show_privs(struct Client *source_p, struct Client *target_p)
{