mirror of
https://github.com/matrix-construct/construct
synced 2024-11-19 16:30:52 +01:00
Add AV2 descriptions to m_[l-m]*
This commit is contained in:
parent
f1156bf07a
commit
f5ebe640bc
7 changed files with 29 additions and 8 deletions
|
@ -54,7 +54,10 @@ mapi_hlist_av1 links_hlist[] = {
|
||||||
{ NULL, NULL }
|
{ NULL, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_MODULE_AV2(links, NULL, NULL, links_clist, links_hlist, NULL, NULL, NULL, NULL);
|
static const char links_desc[] =
|
||||||
|
"Provides the LINKS command to view servers linked to the host server";
|
||||||
|
|
||||||
|
DECLARE_MODULE_AV2(links, NULL, NULL, links_clist, links_hlist, NULL, NULL, NULL, links_desc);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* m_links - LINKS message handler
|
* m_links - LINKS message handler
|
||||||
|
|
|
@ -81,7 +81,9 @@ mapi_hfn_list_av1 list_hfnlist[] = {
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_MODULE_AV2(list, _modinit, _moddeinit, list_clist, NULL, list_hfnlist, NULL, NULL, NULL);
|
static const char list_desc[] = "Provides the LIST command to clients to view non-hidden channels";
|
||||||
|
|
||||||
|
DECLARE_MODULE_AV2(list, _modinit, _moddeinit, list_clist, NULL, list_hfnlist, NULL, NULL, list_desc);
|
||||||
|
|
||||||
static struct ev_entry *iterate_clients_ev = NULL;
|
static struct ev_entry *iterate_clients_ev = NULL;
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,11 @@ struct Message locops_msgtab = {
|
||||||
};
|
};
|
||||||
|
|
||||||
mapi_clist_av1 locops_clist[] = { &locops_msgtab, NULL };
|
mapi_clist_av1 locops_clist[] = { &locops_msgtab, NULL };
|
||||||
DECLARE_MODULE_AV2(locops, NULL, NULL, locops_clist, NULL, NULL, NULL, NULL, NULL);
|
|
||||||
|
static const char locops_desc[] =
|
||||||
|
"Provides the LOCOPS command to send a message to all local operators";
|
||||||
|
|
||||||
|
DECLARE_MODULE_AV2(locops, NULL, NULL, locops_clist, NULL, NULL, NULL, NULL, locops_desc);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* m_locops - LOCOPS message handler
|
* m_locops - LOCOPS message handler
|
||||||
|
|
|
@ -43,14 +43,18 @@ struct Message lusers_msgtab = {
|
||||||
};
|
};
|
||||||
|
|
||||||
mapi_clist_av1 lusers_clist[] = { &lusers_msgtab, NULL };
|
mapi_clist_av1 lusers_clist[] = { &lusers_msgtab, NULL };
|
||||||
DECLARE_MODULE_AV2(lusers, NULL, NULL, lusers_clist, NULL, NULL, NULL, NULL, NULL);
|
|
||||||
|
static const char lusers_desc[] =
|
||||||
|
"Provides the LUSERS command to view the number of current and maximum lusers on a server";
|
||||||
|
|
||||||
|
DECLARE_MODULE_AV2(lusers, NULL, NULL, lusers_clist, NULL, NULL, NULL, NULL, lusers_desc);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* m_lusers - LUSERS message handler
|
* m_lusers - LUSERS message handler
|
||||||
* parv[1] = host/server mask.
|
* parv[1] = host/server mask.
|
||||||
* parv[2] = server to query
|
* parv[2] = server to query
|
||||||
*
|
*
|
||||||
* 199970918 JRL hacked to ignore parv[1] completely and require parc > 3
|
* 19970918 JRL hacked to ignore parv[1] completely and require parc > 3
|
||||||
* to cause a force
|
* to cause a force
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
|
|
|
@ -39,7 +39,10 @@ struct Message map_msgtab = {
|
||||||
};
|
};
|
||||||
|
|
||||||
mapi_clist_av1 map_clist[] = { &map_msgtab, NULL };
|
mapi_clist_av1 map_clist[] = { &map_msgtab, NULL };
|
||||||
DECLARE_MODULE_AV2(map, NULL, NULL, map_clist, NULL, NULL, NULL, NULL, NULL);
|
|
||||||
|
static const char map_desc[] = "Provides the MAP command to view network topology information";
|
||||||
|
|
||||||
|
DECLARE_MODULE_AV2(map, NULL, NULL, map_clist, NULL, NULL, NULL, NULL, map_clist);
|
||||||
|
|
||||||
static void dump_map(struct Client *client_p, struct Client *root, char *pbuf);
|
static void dump_map(struct Client *client_p, struct Client *root, char *pbuf);
|
||||||
static void flattened_map(struct Client *client_p);
|
static void flattened_map(struct Client *client_p);
|
||||||
|
|
|
@ -49,7 +49,10 @@ struct Message monitor_msgtab = {
|
||||||
};
|
};
|
||||||
|
|
||||||
mapi_clist_av1 monitor_clist[] = { &monitor_msgtab, NULL };
|
mapi_clist_av1 monitor_clist[] = { &monitor_msgtab, NULL };
|
||||||
DECLARE_MODULE_AV2(monitor, monitor_init, monitor_deinit, monitor_clist, NULL, NULL, NULL, NULL, NULL);
|
|
||||||
|
static const char monitor_desc[] = "Provides the MONITOR facility for tracking user signon and signoff";
|
||||||
|
|
||||||
|
DECLARE_MODULE_AV2(monitor, monitor_init, monitor_deinit, monitor_clist, NULL, NULL, NULL, NULL, monitor_desc);
|
||||||
|
|
||||||
static int monitor_init(void)
|
static int monitor_init(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -52,7 +52,9 @@ mapi_hlist_av1 motd_hlist[] = {
|
||||||
{ NULL, NULL }
|
{ NULL, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_MODULE_AV2(motd, NULL, NULL, motd_clist, motd_hlist, NULL, NULL, NULL, NULL);
|
static const char motd_desc[] = "Provides the MOTD command to view the Message of the Day";
|
||||||
|
|
||||||
|
DECLARE_MODULE_AV2(motd, NULL, NULL, motd_clist, motd_hlist, NULL, NULL, NULL, motd_desc);
|
||||||
|
|
||||||
static void motd_spy(struct Client *);
|
static void motd_spy(struct Client *);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue