modules: Add AV2 descriptions to all m_t* modules
This commit is contained in:
parent
3abc337fe1
commit
be9c397952
7 changed files with 19 additions and 7 deletions
|
@ -44,6 +44,8 @@
|
||||||
|
|
||||||
static int ms_tb(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
static int ms_tb(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
||||||
static int ms_etb(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
static int ms_etb(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
||||||
|
static const char tb_desc[] =
|
||||||
|
"Provides TS6 TB and ETB commands for topic bursting between servers";
|
||||||
|
|
||||||
struct Message tb_msgtab = {
|
struct Message tb_msgtab = {
|
||||||
"TB", 0, 0, 0, 0,
|
"TB", 0, 0, 0, 0,
|
||||||
|
@ -56,7 +58,7 @@ struct Message etb_msgtab = {
|
||||||
};
|
};
|
||||||
|
|
||||||
mapi_clist_av1 tb_clist[] = { &tb_msgtab, &etb_msgtab, NULL };
|
mapi_clist_av1 tb_clist[] = { &tb_msgtab, &etb_msgtab, NULL };
|
||||||
DECLARE_MODULE_AV2(tb, NULL, NULL, tb_clist, NULL, NULL, NULL, NULL, NULL);
|
DECLARE_MODULE_AV2(tb, NULL, NULL, tb_clist, NULL, NULL, NULL, NULL, tb_desc);
|
||||||
|
|
||||||
/* m_tb()
|
/* m_tb()
|
||||||
*
|
*
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
|
|
||||||
static int mo_testline(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
static int mo_testline(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||||
static int mo_testgecos(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
static int mo_testgecos(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||||
|
static const char testline_desc[] = "Provides the ability to test I/K/D/X lines and RESVs";
|
||||||
|
|
||||||
struct Message testline_msgtab = {
|
struct Message testline_msgtab = {
|
||||||
"TESTLINE", 0, 0, 0, 0,
|
"TESTLINE", 0, 0, 0, 0,
|
||||||
|
@ -52,7 +53,7 @@ struct Message testgecos_msgtab = {
|
||||||
};
|
};
|
||||||
|
|
||||||
mapi_clist_av1 testline_clist[] = { &testline_msgtab, &testgecos_msgtab, NULL };
|
mapi_clist_av1 testline_clist[] = { &testline_msgtab, &testgecos_msgtab, NULL };
|
||||||
DECLARE_MODULE_AV2(testline, NULL, NULL, testline_clist, NULL, NULL, NULL, NULL, NULL);
|
DECLARE_MODULE_AV2(testline, NULL, NULL, testline_clist, NULL, NULL, NULL, NULL, testline_desc);
|
||||||
|
|
||||||
static int
|
static int
|
||||||
mo_testline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
|
mo_testline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
|
||||||
|
|
|
@ -48,6 +48,8 @@
|
||||||
|
|
||||||
static int mo_testmask(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
|
static int mo_testmask(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
|
||||||
int parc, const char *parv[]);
|
int parc, const char *parv[]);
|
||||||
|
static const char testmask_desc[] =
|
||||||
|
"Provides the TESTMASK command to show the number of clients matching a hostmask or GECOS";
|
||||||
|
|
||||||
struct Message testmask_msgtab = {
|
struct Message testmask_msgtab = {
|
||||||
"TESTMASK", 0, 0, 0, 0,
|
"TESTMASK", 0, 0, 0, 0,
|
||||||
|
@ -55,7 +57,7 @@ struct Message testmask_msgtab = {
|
||||||
};
|
};
|
||||||
|
|
||||||
mapi_clist_av1 testmask_clist[] = { &testmask_msgtab, NULL };
|
mapi_clist_av1 testmask_clist[] = { &testmask_msgtab, NULL };
|
||||||
DECLARE_MODULE_AV2(testmask, NULL, NULL, testmask_clist, NULL, NULL, NULL, NULL, NULL);
|
DECLARE_MODULE_AV2(testmask, NULL, NULL, testmask_clist, NULL, NULL, NULL, NULL, testmask_desc);
|
||||||
|
|
||||||
static const char *empty_sockhost = "255.255.255.255";
|
static const char *empty_sockhost = "255.255.255.255";
|
||||||
static const char *spoofed_sockhost = "0";
|
static const char *spoofed_sockhost = "0";
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
#include "s_newconf.h" /* add_tgchange */
|
#include "s_newconf.h" /* add_tgchange */
|
||||||
|
|
||||||
static int me_tginfo(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
static int me_tginfo(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||||
|
static const char tginfo_desc[] = "Processes target change notifications from other servers";
|
||||||
|
|
||||||
struct Message tginfo_msgtab = {
|
struct Message tginfo_msgtab = {
|
||||||
"TGINFO", 0, 0, 0, 0,
|
"TGINFO", 0, 0, 0, 0,
|
||||||
|
@ -48,7 +49,7 @@ struct Message tginfo_msgtab = {
|
||||||
|
|
||||||
mapi_clist_av1 tginfo_clist[] = { &tginfo_msgtab, NULL };
|
mapi_clist_av1 tginfo_clist[] = { &tginfo_msgtab, NULL };
|
||||||
|
|
||||||
DECLARE_MODULE_AV2(tginfo, NULL, NULL, tginfo_clist, NULL, NULL, NULL, NULL, NULL);
|
DECLARE_MODULE_AV2(tginfo, NULL, NULL, tginfo_clist, NULL, NULL, NULL, NULL, tginfo_desc);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** me_tginfo
|
** me_tginfo
|
||||||
|
|
|
@ -36,6 +36,8 @@
|
||||||
|
|
||||||
static int m_time(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
static int m_time(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||||
static char *date(void);
|
static char *date(void);
|
||||||
|
static const char time_desc[] =
|
||||||
|
"Provides the TIME command to show the current server time":
|
||||||
|
|
||||||
struct Message time_msgtab = {
|
struct Message time_msgtab = {
|
||||||
"TIME", 0, 0, 0, 0,
|
"TIME", 0, 0, 0, 0,
|
||||||
|
@ -43,7 +45,7 @@ struct Message time_msgtab = {
|
||||||
};
|
};
|
||||||
|
|
||||||
mapi_clist_av1 time_clist[] = { &time_msgtab, NULL };
|
mapi_clist_av1 time_clist[] = { &time_msgtab, NULL };
|
||||||
DECLARE_MODULE_AV2(time, NULL, NULL, time_clist, NULL, NULL, NULL, NULL, NULL);
|
DECLARE_MODULE_AV2(time, NULL, NULL, time_clist, NULL, NULL, NULL, NULL, time_desc);
|
||||||
|
|
||||||
static const char *months[] = {
|
static const char *months[] = {
|
||||||
"January", "February", "March", "April",
|
"January", "February", "March", "April",
|
||||||
|
|
|
@ -43,6 +43,8 @@
|
||||||
|
|
||||||
static int m_topic(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
static int m_topic(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||||
static int ms_topic(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
static int ms_topic(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||||
|
static const char topic_desc[] =
|
||||||
|
"Provides the TOPIC command to set, remove, and inspect channel topics";
|
||||||
|
|
||||||
struct Message topic_msgtab = {
|
struct Message topic_msgtab = {
|
||||||
"TOPIC", 0, 0, 0, 0,
|
"TOPIC", 0, 0, 0, 0,
|
||||||
|
@ -50,7 +52,7 @@ struct Message topic_msgtab = {
|
||||||
};
|
};
|
||||||
|
|
||||||
mapi_clist_av1 topic_clist[] = { &topic_msgtab, NULL };
|
mapi_clist_av1 topic_clist[] = { &topic_msgtab, NULL };
|
||||||
DECLARE_MODULE_AV2(topic, NULL, NULL, topic_clist, NULL, NULL, NULL, NULL, NULL);
|
DECLARE_MODULE_AV2(topic, NULL, NULL, topic_clist, NULL, NULL, NULL, NULL, topic_desc);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* m_topic
|
* m_topic
|
||||||
|
|
|
@ -41,6 +41,8 @@
|
||||||
#include "modules.h"
|
#include "modules.h"
|
||||||
|
|
||||||
static int m_trace(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
static int m_trace(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||||
|
static const char trace_desc[] =
|
||||||
|
"Provides the TRACE command to trace the route to a client or server";
|
||||||
|
|
||||||
static void trace_spy(struct Client *, struct Client *);
|
static void trace_spy(struct Client *, struct Client *);
|
||||||
|
|
||||||
|
@ -56,7 +58,7 @@ mapi_hlist_av1 trace_hlist[] = {
|
||||||
{ "doing_trace", &doing_trace_hook },
|
{ "doing_trace", &doing_trace_hook },
|
||||||
{ NULL, NULL }
|
{ NULL, NULL }
|
||||||
};
|
};
|
||||||
DECLARE_MODULE_AV2(trace, NULL, NULL, trace_clist, trace_hlist, NULL, NULL, NULL, NULL);
|
DECLARE_MODULE_AV2(trace, NULL, NULL, trace_clist, trace_hlist, NULL, NULL, NULL, trace_desc);
|
||||||
|
|
||||||
static void count_downlinks(struct Client *server_p, int *pservcount, int *pusercount);
|
static void count_downlinks(struct Client *server_p, int *pservcount, int *pusercount);
|
||||||
static int report_this_status(struct Client *source_p, struct Client *target_p);
|
static int report_this_status(struct Client *source_p, struct Client *target_p);
|
||||||
|
|
Loading…
Reference in a new issue