Bump some extensions to AV2 and add descriptions

This commit is contained in:
Elizabeth Myers 2016-03-07 03:08:40 -06:00
parent 1fe7d6083d
commit dacd2aa8c2
7 changed files with 31 additions and 13 deletions

View file

@ -43,6 +43,8 @@ struct Message dehelper_msgtab = {
mapi_clist_av1 helpops_clist[] = { &dehelper_msgtab, NULL };
static const char helpops_desc[] = "The helpops system as used by freenode";
static int mo_dehelper(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char **parv)
{
struct Client *target_p;

View file

@ -19,7 +19,9 @@ mapi_hfn_list_av1 huc_hfnlist[] = {
{ NULL, NULL }
};
DECLARE_MODULE_AV2(hide_uncommon_channels, NULL, NULL, NULL, NULL, huc_hfnlist, NULL, NULL, NULL);
static const char hide_desc[] = "Hides channel memberships not shared";
DECLARE_MODULE_AV2(hide_uncommon_channels, NULL, NULL, NULL, NULL, huc_hfnlist, NULL, NULL, hide_desc);
static void
h_huc_doing_whois_channel_visibility(hook_data_client *hdata)

View file

@ -106,14 +106,20 @@ mapi_hfn_list_av1 hurt_hfnlist[] = {
mapi_clist_av1 hurt_clist[] = { &hurt_msgtab, &heal_msgtab, NULL };
DECLARE_MODULE_AV1(
static const char hurt_desc[] =
"Prevents \"hurt\" users from messaging anyone but operators or "
"services until they identify or are \"healed\"";
DECLARE_MODULE_AV2(
hurt,
modinit,
modfini,
hurt_clist,
NULL,
hurt_hfnlist,
NULL
NULL,
NULL,
hurt_desc
);
/* }}} */

View file

@ -43,8 +43,10 @@ mapi_hfn_list_av1 ip_cloaking_hfnlist[] = {
{ NULL, NULL }
};
DECLARE_MODULE_AV1(ip_cloaking, _modinit, _moddeinit, NULL, NULL,
ip_cloaking_hfnlist, NULL);
static const char ip_cloaking_desc[] = "IP cloaking module that uses user mode +h";
DECLARE_MODULE_AV2(ip_cloaking, _modinit, _moddeinit, NULL, NULL,
ip_cloaking_hfnlist, NULL, NULL, ip_cloaking_desc);
static void
distribute_hostchange(struct Client *client_p, char *newhost)

View file

@ -10,7 +10,7 @@
#include "s_serv.h"
#include "numeric.h"
/* if you're modifying this module, you'll probably to change this */
/* if you're modifying this module, you'll probably want to change this */
#define KEY 0x13748cfa
static int
@ -39,8 +39,10 @@ mapi_hfn_list_av1 ip_cloaking_hfnlist[] = {
{ NULL, NULL }
};
DECLARE_MODULE_AV1(ip_cloaking, _modinit, _moddeinit, NULL, NULL,
ip_cloaking_hfnlist, NULL);
static const char ip_cloaking_desc[] = "The old IP cloaking mechanism version 3.0";
DECLARE_MODULE_AV2(ip_cloaking, _modinit, _moddeinit, NULL, NULL,
ip_cloaking_hfnlist, NULL, NULL, ip_cloaking_desc);
static void
distribute_hostchange(struct Client *client_p, char *newhost)

View file

@ -43,8 +43,10 @@ mapi_hfn_list_av1 ip_cloaking_hfnlist[] = {
{ NULL, NULL }
};
DECLARE_MODULE_AV1(ip_cloaking, _modinit, _moddeinit, NULL, NULL,
ip_cloaking_hfnlist, NULL);
static const char ip_cloaking_desc[] = "New IP cloaking module that uses user mode +x instead of +h";
DECLARE_MODULE_AV2(ip_cloaking, _modinit, _moddeinit, NULL, NULL,
ip_cloaking_hfnlist, NULL, NULL, ip_cloaking_desc);
static void
distribute_hostchange(struct Client *client_p, char *newhost)

View file

@ -10,7 +10,7 @@
#include "s_serv.h"
#include "numeric.h"
/* if you're modifying this module, you'll probably to change this */
/* if you're modifying this module, you'll probably want to change this */
#define KEY 0x13748cfa
static int
@ -39,8 +39,10 @@ mapi_hfn_list_av1 ip_cloaking_hfnlist[] = {
{ NULL, NULL }
};
DECLARE_MODULE_AV1(ip_cloaking, _modinit, _moddeinit, NULL, NULL,
ip_cloaking_hfnlist, NULL);
static const char ip_cloaking_desc[] = "Very old IP cloaking mechanism";
DECLARE_MODULE_AV2(ip_cloaking, _modinit, _moddeinit, NULL, NULL,
ip_cloaking_hfnlist, NULL, NULL, ip_cloaking_desc);
static void
distribute_hostchange(struct Client *client_p, char *newhost)