modules: Add AV2 descriptions to all m_r* modules
This commit is contained in:
parent
d5d3540913
commit
114d98b3cc
3 changed files with 8 additions and 3 deletions
|
@ -46,6 +46,8 @@
|
||||||
|
|
||||||
static int mo_rehash(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
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 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 = {
|
struct Message rehash_msgtab = {
|
||||||
"REHASH", 0, 0, 0, 0,
|
"REHASH", 0, 0, 0, 0,
|
||||||
|
@ -53,7 +55,7 @@ struct Message rehash_msgtab = {
|
||||||
};
|
};
|
||||||
|
|
||||||
mapi_clist_av1 rehash_clist[] = { &rehash_msgtab, NULL };
|
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
|
struct hash_commands
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
static int mo_restart(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
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 me_restart(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||||
static int do_restart(struct Client *source_p, const char *servername);
|
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 = {
|
struct Message restart_msgtab = {
|
||||||
"RESTART", 0, 0, 0, 0,
|
"RESTART", 0, 0, 0, 0,
|
||||||
|
@ -48,7 +49,7 @@ struct Message restart_msgtab = {
|
||||||
};
|
};
|
||||||
|
|
||||||
mapi_clist_av1 restart_clist[] = { &restart_msgtab, NULL };
|
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
|
* mo_restart
|
||||||
|
|
|
@ -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 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 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 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 = {
|
struct Message resv_msgtab = {
|
||||||
"RESV", 0, 0, 0, 0,
|
"RESV", 0, 0, 0, 0,
|
||||||
|
@ -57,7 +59,7 @@ struct Message unresv_msgtab = {
|
||||||
|
|
||||||
mapi_clist_av1 resv_clist[] = { &resv_msgtab, &unresv_msgtab, NULL };
|
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,
|
static void parse_resv(struct Client *source_p, const char *name,
|
||||||
const char *reason, int temp_time, int propagated);
|
const char *reason, int temp_time, int propagated);
|
||||||
|
|
Loading…
Reference in a new issue