mirror of
https://github.com/matrix-construct/construct
synced 2024-12-29 00:44:17 +01:00
modules: Add AV2 descriptions to all m_u* modules
This commit is contained in:
parent
be9c397952
commit
4855e957c5
4 changed files with 12 additions and 4 deletions
|
@ -31,6 +31,8 @@
|
||||||
#include "send.h"
|
#include "send.h"
|
||||||
|
|
||||||
static int mo_unreject(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
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 = {
|
struct Message unreject_msgtab = {
|
||||||
"UNREJECT", 0, 0, 0, 0,
|
"UNREJECT", 0, 0, 0, 0,
|
||||||
|
@ -38,7 +40,7 @@ struct Message unreject_msgtab = {
|
||||||
};
|
};
|
||||||
|
|
||||||
mapi_clist_av1 unreject_clist[] = { &unreject_msgtab, NULL };
|
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
|
* mo_unreject
|
||||||
|
|
|
@ -37,6 +37,8 @@
|
||||||
#include "s_assert.h"
|
#include "s_assert.h"
|
||||||
|
|
||||||
static int mr_user(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
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 = {
|
struct Message user_msgtab = {
|
||||||
"USER", 0, 0, 0, 0,
|
"USER", 0, 0, 0, 0,
|
||||||
|
@ -44,7 +46,7 @@ struct Message user_msgtab = {
|
||||||
};
|
};
|
||||||
|
|
||||||
mapi_clist_av1 user_clist[] = { &user_msgtab, NULL };
|
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,
|
static int do_local_user(struct Client *client_p, struct Client *source_p,
|
||||||
const char *username, const char *realname);
|
const char *username, const char *realname);
|
||||||
|
|
|
@ -37,6 +37,8 @@
|
||||||
static char buf[BUFSIZE];
|
static char buf[BUFSIZE];
|
||||||
|
|
||||||
static int m_userhost(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
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 = {
|
struct Message userhost_msgtab = {
|
||||||
"USERHOST", 0, 0, 0, 0,
|
"USERHOST", 0, 0, 0, 0,
|
||||||
|
@ -44,7 +46,7 @@ struct Message userhost_msgtab = {
|
||||||
};
|
};
|
||||||
|
|
||||||
mapi_clist_av1 userhost_clist[] = { &userhost_msgtab, NULL };
|
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
|
* m_userhost added by Darren Reed 13/8/91 to aid clients and reduce
|
||||||
|
|
|
@ -34,6 +34,8 @@
|
||||||
#include "modules.h"
|
#include "modules.h"
|
||||||
|
|
||||||
static int m_users(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
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 = {
|
struct Message users_msgtab = {
|
||||||
"USERS", 0, 0, 0, 0,
|
"USERS", 0, 0, 0, 0,
|
||||||
|
@ -41,7 +43,7 @@ struct Message users_msgtab = {
|
||||||
};
|
};
|
||||||
|
|
||||||
mapi_clist_av1 users_clist[] = { &users_msgtab, NULL };
|
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
|
* m_users
|
||||||
|
|
Loading…
Reference in a new issue