modules: Add AV2 descriptions for m_w* modules

This commit is contained in:
Andrew Wilcox 2016-03-07 02:53:27 -06:00
parent ae5695cdcb
commit 3bf449fe26
4 changed files with 12 additions and 4 deletions

View file

@ -39,6 +39,8 @@
static int mo_operwall(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static int ms_operwall(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static int ms_wallops(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static const char wallops_desc[] =
"Provides the WALLOPS and OPERWALL commands to message online operators";
struct Message wallops_msgtab = {
"WALLOPS", 0, 0, 0, 0,
@ -50,7 +52,7 @@ struct Message operwall_msgtab = {
};
mapi_clist_av1 wallops_clist[] = { &wallops_msgtab, &operwall_msgtab, NULL };
DECLARE_MODULE_AV2(wallops, NULL, NULL, wallops_clist, NULL, NULL, NULL, NULL, NULL);
DECLARE_MODULE_AV2(wallops, NULL, NULL, wallops_clist, NULL, NULL, NULL, NULL, wallops_desc);
/*
* mo_operwall (write to *all* opers currently online)

View file

@ -62,6 +62,8 @@ struct who_format
};
static int m_who(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static const char who_desc[] =
"Provides the WHO command to display information for users on a channel";
struct Message who_msgtab = {
"WHO", 0, 0, 0, 0,
@ -82,7 +84,7 @@ _moddeinit(void)
}
mapi_clist_av1 who_clist[] = { &who_msgtab, NULL };
DECLARE_MODULE_AV2(who, _modinit, _moddeinit, who_clist, NULL, NULL, NULL, NULL, NULL);
DECLARE_MODULE_AV2(who, _modinit, _moddeinit, who_clist, NULL, NULL, NULL, NULL, who_desc);
static void do_who_on_channel(struct Client *source_p, struct Channel *chptr,
int server_oper, int member,

View file

@ -50,6 +50,8 @@ static void single_whois(struct Client *source_p, struct Client *target_p, int o
static int m_whois(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static int ms_whois(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static const char whois_desc[] =
"Provides the WHOIS command to display information about a user";
struct Message whois_msgtab = {
"WHOIS", 0, 0, 0, 0,
@ -68,7 +70,7 @@ mapi_hlist_av1 whois_hlist[] = {
{ NULL, NULL }
};
DECLARE_MODULE_AV2(whois, NULL, NULL, whois_clist, whois_hlist, NULL, NULL, NULL, NULL);
DECLARE_MODULE_AV2(whois, NULL, NULL, whois_clist, whois_hlist, NULL, NULL, NULL, whois_desc);
/*
* m_whois

View file

@ -40,6 +40,8 @@
#include "modules.h"
static int m_whowas(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static const char whowas_desc[] =
"Provides the WHOWAS command to display information on a disconnected user";
struct Message whowas_msgtab = {
"WHOWAS", 0, 0, 0, 0,
@ -47,7 +49,7 @@ struct Message whowas_msgtab = {
};
mapi_clist_av1 whowas_clist[] = { &whowas_msgtab, NULL };
DECLARE_MODULE_AV2(whowas, NULL, NULL, whowas_clist, NULL, NULL, NULL, NULL, NULL);
DECLARE_MODULE_AV2(whowas, NULL, NULL, whowas_clist, NULL, NULL, NULL, NULL, whowas_desc);
/*
** m_whowas