modules: Add AV2 descriptions to all m_u* modules

This commit is contained in:
Andrew Wilcox 2016-03-07 02:43:11 -06:00
parent be9c397952
commit 4855e957c5
4 changed files with 12 additions and 4 deletions

View file

@ -31,6 +31,8 @@
#include "send.h"
static int mo_unreject(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static const char unreject_desc[] =
"Provides the UNREJECT command to remove an IP from the reject cache";
struct Message unreject_msgtab = {
"UNREJECT", 0, 0, 0, 0,
@ -38,7 +40,7 @@ struct Message unreject_msgtab = {
};
mapi_clist_av1 unreject_clist[] = { &unreject_msgtab, NULL };
DECLARE_MODULE_AV2(unreject, NULL, NULL, unreject_clist, NULL, NULL, NULL, NULL, NULL);
DECLARE_MODULE_AV2(unreject, NULL, NULL, unreject_clist, NULL, NULL, NULL, NULL, unreject_desc);
/*
* mo_unreject

View file

@ -37,6 +37,8 @@
#include "s_assert.h"
static int mr_user(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static const char user_desc[] =
"Provides the USER command to register a new connection":
struct Message user_msgtab = {
"USER", 0, 0, 0, 0,
@ -44,7 +46,7 @@ struct Message user_msgtab = {
};
mapi_clist_av1 user_clist[] = { &user_msgtab, NULL };
DECLARE_MODULE_AV2(user, NULL, NULL, user_clist, NULL, NULL, NULL, NULL, NULL);
DECLARE_MODULE_AV2(user, NULL, NULL, user_clist, NULL, NULL, NULL, NULL, user_desc);
static int do_local_user(struct Client *client_p, struct Client *source_p,
const char *username, const char *realname);

View file

@ -37,6 +37,8 @@
static char buf[BUFSIZE];
static int m_userhost(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static const char userhost_desc[] =
"Provides the USERHOST command to show a user's host";
struct Message userhost_msgtab = {
"USERHOST", 0, 0, 0, 0,
@ -44,7 +46,7 @@ struct Message userhost_msgtab = {
};
mapi_clist_av1 userhost_clist[] = { &userhost_msgtab, NULL };
DECLARE_MODULE_AV2(userhost, NULL, NULL, userhost_clist, NULL, NULL, NULL, NULL, NULL);
DECLARE_MODULE_AV2(userhost, NULL, NULL, userhost_clist, NULL, NULL, NULL, NULL, userhost_desc);
/*
* m_userhost added by Darren Reed 13/8/91 to aid clients and reduce

View file

@ -34,6 +34,8 @@
#include "modules.h"
static int m_users(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static const char users_desc[] =
"Provides the USERS command to display connection statistics locally and globally";
struct Message users_msgtab = {
"USERS", 0, 0, 0, 0,
@ -41,7 +43,7 @@ struct Message users_msgtab = {
};
mapi_clist_av1 users_clist[] = { &users_msgtab, NULL };
DECLARE_MODULE_AV2(users, NULL, NULL, users_clist, NULL, NULL, NULL, NULL, NULL);
DECLARE_MODULE_AV2(users, NULL, NULL, users_clist, NULL, NULL, NULL, NULL, users_desc);
/*
* m_users