mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 16:34:13 +01:00
Update extensions/spy_* with AV2 descriptions.
This commit is contained in:
parent
84b4c05888
commit
3bde01a819
7 changed files with 21 additions and 7 deletions
|
@ -26,6 +26,8 @@
|
||||||
#include "ircd.h"
|
#include "ircd.h"
|
||||||
#include "send.h"
|
#include "send.h"
|
||||||
|
|
||||||
|
static const char spy_desc[] = "Sends a notice when someone uses ADMIN";
|
||||||
|
|
||||||
void show_admin(hook_data *);
|
void show_admin(hook_data *);
|
||||||
|
|
||||||
mapi_hfn_list_av1 admin_hfnlist[] = {
|
mapi_hfn_list_av1 admin_hfnlist[] = {
|
||||||
|
@ -33,7 +35,7 @@ mapi_hfn_list_av1 admin_hfnlist[] = {
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_MODULE_AV2(admin_spy, NULL, NULL, NULL, NULL, admin_hfnlist, NULL, NULL, NULL);
|
DECLARE_MODULE_AV2(admin_spy, NULL, NULL, NULL, NULL, admin_hfnlist, NULL, NULL, spy_desc);
|
||||||
|
|
||||||
void
|
void
|
||||||
show_admin(hook_data *data)
|
show_admin(hook_data *data)
|
||||||
|
|
|
@ -26,6 +26,8 @@
|
||||||
#include "ircd.h"
|
#include "ircd.h"
|
||||||
#include "send.h"
|
#include "send.h"
|
||||||
|
|
||||||
|
static const char spy_desc[] = "Sends a notice when someone uses INFO";
|
||||||
|
|
||||||
void show_info(hook_data *);
|
void show_info(hook_data *);
|
||||||
|
|
||||||
mapi_hfn_list_av1 info_hfnlist[] = {
|
mapi_hfn_list_av1 info_hfnlist[] = {
|
||||||
|
@ -33,7 +35,7 @@ mapi_hfn_list_av1 info_hfnlist[] = {
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_MODULE_AV2(info_spy, NULL, NULL, NULL, NULL, info_hfnlist, NULL, NULL, NULL);
|
DECLARE_MODULE_AV2(info_spy, NULL, NULL, NULL, NULL, info_hfnlist, NULL, NULL, spy_desc);
|
||||||
|
|
||||||
void
|
void
|
||||||
show_info(hook_data *data)
|
show_info(hook_data *data)
|
||||||
|
|
|
@ -26,6 +26,8 @@
|
||||||
#include "ircd.h"
|
#include "ircd.h"
|
||||||
#include "send.h"
|
#include "send.h"
|
||||||
|
|
||||||
|
static const char spy_desc[] = "Sends a notice when someone uses LINKS";
|
||||||
|
|
||||||
void show_links(hook_data *);
|
void show_links(hook_data *);
|
||||||
|
|
||||||
mapi_hfn_list_av1 links_hfnlist[] = {
|
mapi_hfn_list_av1 links_hfnlist[] = {
|
||||||
|
@ -33,7 +35,7 @@ mapi_hfn_list_av1 links_hfnlist[] = {
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_MODULE_AV2(links_spy, NULL, NULL, NULL, NULL, links_hfnlist, NULL, NULL, NULL);
|
DECLARE_MODULE_AV2(links_spy, NULL, NULL, NULL, NULL, links_hfnlist, NULL, NULL, spy_desc);
|
||||||
|
|
||||||
void
|
void
|
||||||
show_links(hook_data *data)
|
show_links(hook_data *data)
|
||||||
|
|
|
@ -26,6 +26,8 @@
|
||||||
#include "ircd.h"
|
#include "ircd.h"
|
||||||
#include "send.h"
|
#include "send.h"
|
||||||
|
|
||||||
|
static const char spy_desc[] = "Sends a notice when someone looks at the MOTD";
|
||||||
|
|
||||||
void show_motd(hook_data *);
|
void show_motd(hook_data *);
|
||||||
|
|
||||||
mapi_hfn_list_av1 motd_hfnlist[] = {
|
mapi_hfn_list_av1 motd_hfnlist[] = {
|
||||||
|
@ -33,7 +35,7 @@ mapi_hfn_list_av1 motd_hfnlist[] = {
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_MODULE_AV2(motd_spy, NULL, NULL, NULL, NULL, motd_hfnlist, NULL, NULL, NULL);
|
DECLARE_MODULE_AV2(motd_spy, NULL, NULL, NULL, NULL, motd_hfnlist, NULL, NULL, spy_desc);
|
||||||
|
|
||||||
void
|
void
|
||||||
show_motd(hook_data *data)
|
show_motd(hook_data *data)
|
||||||
|
|
|
@ -26,6 +26,8 @@
|
||||||
#include "ircd.h"
|
#include "ircd.h"
|
||||||
#include "send.h"
|
#include "send.h"
|
||||||
|
|
||||||
|
static const char spy_desc[] = "Sends a notice when someone uses STATS";
|
||||||
|
|
||||||
void show_stats(hook_data_int *);
|
void show_stats(hook_data_int *);
|
||||||
|
|
||||||
mapi_hfn_list_av1 stats_hfnlist[] = {
|
mapi_hfn_list_av1 stats_hfnlist[] = {
|
||||||
|
@ -33,7 +35,7 @@ mapi_hfn_list_av1 stats_hfnlist[] = {
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_MODULE_AV2(stats_spy, NULL, NULL, NULL, NULL, stats_hfnlist, NULL, NULL, NULL);
|
DECLARE_MODULE_AV2(stats_spy, NULL, NULL, NULL, NULL, stats_hfnlist, NULL, NULL, spy_desc);
|
||||||
|
|
||||||
void
|
void
|
||||||
show_stats(hook_data_int *data)
|
show_stats(hook_data_int *data)
|
||||||
|
|
|
@ -26,6 +26,8 @@
|
||||||
#include "ircd.h"
|
#include "ircd.h"
|
||||||
#include "send.h"
|
#include "send.h"
|
||||||
|
|
||||||
|
static const char spy_desc[] = "Sends a notice when someone looks at the operator list";
|
||||||
|
|
||||||
void show_stats_p(hook_data *);
|
void show_stats_p(hook_data *);
|
||||||
|
|
||||||
mapi_hfn_list_av1 stats_p_hfnlist[] = {
|
mapi_hfn_list_av1 stats_p_hfnlist[] = {
|
||||||
|
@ -33,7 +35,7 @@ mapi_hfn_list_av1 stats_p_hfnlist[] = {
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_MODULE_AV2(stats_p_spy, NULL, NULL, NULL, NULL, stats_p_hfnlist, NULL, NULL, NULL);
|
DECLARE_MODULE_AV2(stats_p_spy, NULL, NULL, NULL, NULL, stats_p_hfnlist, NULL, NULL, spy_desc);
|
||||||
|
|
||||||
void
|
void
|
||||||
show_stats_p(hook_data *data)
|
show_stats_p(hook_data *data)
|
||||||
|
|
|
@ -26,6 +26,8 @@
|
||||||
#include "ircd.h"
|
#include "ircd.h"
|
||||||
#include "send.h"
|
#include "send.h"
|
||||||
|
|
||||||
|
static const char spy_desc[] = "Sends a notice when someone uses TRACE or LTRACE";
|
||||||
|
|
||||||
void show_trace(hook_data_client *);
|
void show_trace(hook_data_client *);
|
||||||
|
|
||||||
mapi_hfn_list_av1 trace_hfnlist[] = {
|
mapi_hfn_list_av1 trace_hfnlist[] = {
|
||||||
|
@ -33,7 +35,7 @@ mapi_hfn_list_av1 trace_hfnlist[] = {
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_MODULE_AV2(trace_spy, NULL, NULL, NULL, NULL, trace_hfnlist, NULL, NULL, NULL);
|
DECLARE_MODULE_AV2(trace_spy, NULL, NULL, NULL, NULL, trace_hfnlist, NULL, NULL, spy_desc);
|
||||||
|
|
||||||
void
|
void
|
||||||
show_trace(hook_data_client *data)
|
show_trace(hook_data_client *data)
|
||||||
|
|
Loading…
Reference in a new issue