extensions: add AV2 description strings to a few modules
This commit is contained in:
parent
d9e4f6f074
commit
c81afd1580
13 changed files with 26 additions and 13 deletions
|
@ -17,13 +17,14 @@
|
|||
#include "numeric.h"
|
||||
|
||||
static void h_can_create_channel_authenticated(hook_data_client_approval *);
|
||||
static const char restrict_desc[] = "Restricts channel creation to authenticated users and IRC operators only";
|
||||
|
||||
mapi_hfn_list_av1 restrict_hfnlist[] = {
|
||||
{ "can_create_channel", (hookfn) h_can_create_channel_authenticated },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
DECLARE_MODULE_AV2(createauthonly, NULL, NULL, NULL, NULL, restrict_hfnlist, NULL, NULL, NULL);
|
||||
DECLARE_MODULE_AV2(createauthonly, NULL, NULL, NULL, NULL, restrict_hfnlist, NULL, NULL, restrict_desc);
|
||||
|
||||
static void
|
||||
h_can_create_channel_authenticated(hook_data_client_approval *data)
|
||||
|
|
|
@ -17,13 +17,14 @@
|
|||
#include "numeric.h"
|
||||
|
||||
static void h_can_create_channel_authenticated(hook_data_client_approval *);
|
||||
static const char restrict_desc[] = "Restricts channel creation to IRC operators";
|
||||
|
||||
mapi_hfn_list_av1 restrict_hfnlist[] = {
|
||||
{ "can_create_channel", (hookfn) h_can_create_channel_authenticated },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
DECLARE_MODULE_AV2(createoperonly, NULL, NULL, NULL, NULL, restrict_hfnlist, NULL, NULL, NULL);
|
||||
DECLARE_MODULE_AV2(createoperonly, NULL, NULL, NULL, NULL, restrict_hfnlist, NULL, NULL, restrict_desc);
|
||||
|
||||
static void
|
||||
h_can_create_channel_authenticated(hook_data_client_approval *data)
|
||||
|
|
|
@ -11,8 +11,9 @@
|
|||
static int _modinit(void);
|
||||
static void _moddeinit(void);
|
||||
static int eb_account(const char *data, struct Client *client_p, struct Channel *chptr, long mode_type);
|
||||
static const char extb_desc[] = "Account ($a) extban type";
|
||||
|
||||
DECLARE_MODULE_AV2(extb_account, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
DECLARE_MODULE_AV2(extb_account, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, extb_desc);
|
||||
|
||||
static int
|
||||
_modinit(void)
|
||||
|
|
|
@ -14,8 +14,9 @@
|
|||
static int _modinit(void);
|
||||
static void _moddeinit(void);
|
||||
static int eb_canjoin(const char *data, struct Client *client_p, struct Channel *chptr, long mode_type);
|
||||
static const char extb_desc[] = "Can join ($j) extban type - matches users who are or are not banned from a specified channel";
|
||||
|
||||
DECLARE_MODULE_AV2(extb_canjoin, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
DECLARE_MODULE_AV2(extb_canjoin, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, extb_desc);
|
||||
|
||||
static int
|
||||
_modinit(void)
|
||||
|
|
|
@ -13,8 +13,9 @@
|
|||
static int _modinit(void);
|
||||
static void _moddeinit(void);
|
||||
static int eb_channel(const char *data, struct Client *client_p, struct Channel *chptr, long mode_type);
|
||||
static const char extb_desc[] = "Channel ($c) extban type";
|
||||
|
||||
DECLARE_MODULE_AV2(extb_channel, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
DECLARE_MODULE_AV2(extb_channel, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, extb_desc);
|
||||
|
||||
static int
|
||||
_modinit(void)
|
||||
|
|
|
@ -52,8 +52,9 @@ static int eb_or(const char *data, struct Client *client_p, struct Channel *chpt
|
|||
static int eb_and(const char *data, struct Client *client_p, struct Channel *chptr, long mode_type);
|
||||
static int eb_combi(const char *data, struct Client *client_p, struct Channel *chptr, long mode_type, int is_and);
|
||||
static int recursion_depth = 0;
|
||||
static const char extb_desc[] = "Combination ($&, $|) extban types";
|
||||
|
||||
DECLARE_MODULE_AV2(extb_extended, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
DECLARE_MODULE_AV2(extb_extended, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, extb_desc);
|
||||
|
||||
static int
|
||||
_modinit(void)
|
||||
|
|
|
@ -12,8 +12,9 @@
|
|||
static int _modinit(void);
|
||||
static void _moddeinit(void);
|
||||
static int eb_extended(const char *data, struct Client *client_p, struct Channel *chptr, long mode_type);
|
||||
static const char extb_desc[] = "Extended mask ($x) extban type";
|
||||
|
||||
DECLARE_MODULE_AV2(extb_extended, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
DECLARE_MODULE_AV2(extb_extended, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, extb_desc);
|
||||
|
||||
static int
|
||||
_modinit(void)
|
||||
|
|
|
@ -12,8 +12,9 @@
|
|||
static int _modinit(void);
|
||||
static void _moddeinit(void);
|
||||
static int eb_hostmask(const char *data, struct Client *client_p, struct Channel *chptr, long mode_type);
|
||||
static const char extb_desc[] = "Hostmask ($m) extban type";
|
||||
|
||||
DECLARE_MODULE_AV2(extb_hostmask, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
DECLARE_MODULE_AV2(extb_hostmask, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, extb_desc);
|
||||
|
||||
static int
|
||||
_modinit(void)
|
||||
|
|
|
@ -13,8 +13,9 @@
|
|||
static int _modinit(void);
|
||||
static void _moddeinit(void);
|
||||
static int eb_oper(const char *data, struct Client *client_p, struct Channel *chptr, long mode_type);
|
||||
static const char extb_desc[] = "Oper ($o) extban type";
|
||||
|
||||
DECLARE_MODULE_AV2(extb_oper, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
DECLARE_MODULE_AV2(extb_oper, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, extb_desc);
|
||||
|
||||
static int
|
||||
_modinit(void)
|
||||
|
|
|
@ -11,8 +11,9 @@
|
|||
static int _modinit(void);
|
||||
static void _moddeinit(void);
|
||||
static int eb_realname(const char *data, struct Client *client_p, struct Channel *chptr, long mode_type);
|
||||
static const char extb_desc[] = "Realname/GECOS ($r) extban type";
|
||||
|
||||
DECLARE_MODULE_AV2(extb_realname, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
DECLARE_MODULE_AV2(extb_realname, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, extb_desc);
|
||||
|
||||
static int
|
||||
_modinit(void)
|
||||
|
|
|
@ -11,8 +11,9 @@
|
|||
static int _modinit(void);
|
||||
static void _moddeinit(void);
|
||||
static int eb_server(const char *data, struct Client *client_p, struct Channel *chptr, long mode_type);
|
||||
static const char extb_desc[] = "Server ($s) extban type";
|
||||
|
||||
DECLARE_MODULE_AV2(extb_server, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
DECLARE_MODULE_AV2(extb_server, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, extb_desc);
|
||||
|
||||
static int
|
||||
_modinit(void)
|
||||
|
|
|
@ -8,8 +8,9 @@
|
|||
static int _modinit(void);
|
||||
static void _moddeinit(void);
|
||||
static int eb_ssl(const char *data, struct Client *client_p, struct Channel *chptr, long mode_type);
|
||||
static const char extb_desc[] = "SSL/TLS ($z) extban type";
|
||||
|
||||
DECLARE_MODULE_AV2(extb_ssl, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
DECLARE_MODULE_AV2(extb_ssl, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, extb_desc);
|
||||
|
||||
static int
|
||||
_modinit(void)
|
||||
|
|
|
@ -18,8 +18,9 @@
|
|||
static int _modinit(void);
|
||||
static void _moddeinit(void);
|
||||
static int eb_usermode(const char *data, struct Client *client_p, struct Channel *chptr, long mode_type);
|
||||
static const char extb_desc[] = "Usermode ($m) extban type";
|
||||
|
||||
DECLARE_MODULE_AV2(extb_usermode, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
DECLARE_MODULE_AV2(extb_usermode, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, extb_desc);
|
||||
|
||||
static int
|
||||
_modinit(void)
|
||||
|
|
Loading…
Reference in a new issue