modules: Add AV2 descriptions to all m_r* modules

This commit is contained in:
Andrew Wilcox 2016-03-07 01:52:45 -06:00
parent d5d3540913
commit 114d98b3cc
3 changed files with 8 additions and 3 deletions

View file

@ -46,6 +46,8 @@
static int mo_rehash(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static int me_rehash(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static const char rehash_desc[] =
"Provides the REHASH command to reload configuration and other files";
struct Message rehash_msgtab = {
"REHASH", 0, 0, 0, 0,
@ -53,7 +55,7 @@ struct Message rehash_msgtab = {
};
mapi_clist_av1 rehash_clist[] = { &rehash_msgtab, NULL };
DECLARE_MODULE_AV2(rehash, NULL, NULL, rehash_clist, NULL, NULL, NULL, NULL, NULL);
DECLARE_MODULE_AV2(rehash, NULL, NULL, rehash_clist, NULL, NULL, NULL, NULL, rehash_desc);
struct hash_commands
{

View file

@ -41,6 +41,7 @@
static int mo_restart(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static int me_restart(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static int do_restart(struct Client *source_p, const char *servername);
static const char restart_desc[] = "Provides the RESTART command to restart the server";
struct Message restart_msgtab = {
"RESTART", 0, 0, 0, 0,
@ -48,7 +49,7 @@ struct Message restart_msgtab = {
};
mapi_clist_av1 restart_clist[] = { &restart_msgtab, NULL };
DECLARE_MODULE_AV2(restart, NULL, NULL, restart_clist, NULL, NULL, NULL, NULL, NULL);
DECLARE_MODULE_AV2(restart, NULL, NULL, restart_clist, NULL, NULL, NULL, NULL, restart_desc);
/*
* mo_restart

View file

@ -44,6 +44,8 @@ static int me_resv(struct MsgBuf *, struct Client *, struct Client *, int, const
static int mo_unresv(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static int ms_unresv(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static int me_unresv(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static const char resv_desc[] =
"Provides management of reserved nicknames and channels using (UN)RESV";
struct Message resv_msgtab = {
"RESV", 0, 0, 0, 0,
@ -57,7 +59,7 @@ struct Message unresv_msgtab = {
mapi_clist_av1 resv_clist[] = { &resv_msgtab, &unresv_msgtab, NULL };
DECLARE_MODULE_AV2(resv, NULL, NULL, resv_clist, NULL, NULL, NULL, NULL, NULL);
DECLARE_MODULE_AV2(resv, NULL, NULL, resv_clist, NULL, NULL, NULL, NULL, resv_desc);
static void parse_resv(struct Client *source_p, const char *name,
const char *reason, int temp_time, int propagated);