From c81afd158057056dae1436c4a24a64e1d4448e34 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Mon, 7 Mar 2016 00:31:41 -0600 Subject: [PATCH] extensions: add AV2 description strings to a few modules --- extensions/createauthonly.c | 3 ++- extensions/createoperonly.c | 3 ++- extensions/extb_account.c | 3 ++- extensions/extb_canjoin.c | 3 ++- extensions/extb_channel.c | 3 ++- extensions/extb_combi.c | 3 ++- extensions/extb_extgecos.c | 3 ++- extensions/extb_hostmask.c | 3 ++- extensions/extb_oper.c | 3 ++- extensions/extb_realname.c | 3 ++- extensions/extb_server.c | 3 ++- extensions/extb_ssl.c | 3 ++- extensions/extb_usermode.c | 3 ++- 13 files changed, 26 insertions(+), 13 deletions(-) diff --git a/extensions/createauthonly.c b/extensions/createauthonly.c index bd0f2e33..0a701844 100644 --- a/extensions/createauthonly.c +++ b/extensions/createauthonly.c @@ -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) diff --git a/extensions/createoperonly.c b/extensions/createoperonly.c index 1fdb41d3..ec92540a 100644 --- a/extensions/createoperonly.c +++ b/extensions/createoperonly.c @@ -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) diff --git a/extensions/extb_account.c b/extensions/extb_account.c index b9e1560e..4f9d3edb 100644 --- a/extensions/extb_account.c +++ b/extensions/extb_account.c @@ -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) diff --git a/extensions/extb_canjoin.c b/extensions/extb_canjoin.c index de7c8dc4..bfb02bc4 100644 --- a/extensions/extb_canjoin.c +++ b/extensions/extb_canjoin.c @@ -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) diff --git a/extensions/extb_channel.c b/extensions/extb_channel.c index 36af6f13..2168701a 100644 --- a/extensions/extb_channel.c +++ b/extensions/extb_channel.c @@ -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) diff --git a/extensions/extb_combi.c b/extensions/extb_combi.c index 4b9a2a4c..86a9d530 100644 --- a/extensions/extb_combi.c +++ b/extensions/extb_combi.c @@ -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) diff --git a/extensions/extb_extgecos.c b/extensions/extb_extgecos.c index f1090fc2..d53c112c 100644 --- a/extensions/extb_extgecos.c +++ b/extensions/extb_extgecos.c @@ -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) diff --git a/extensions/extb_hostmask.c b/extensions/extb_hostmask.c index d853f75a..169235f4 100644 --- a/extensions/extb_hostmask.c +++ b/extensions/extb_hostmask.c @@ -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) diff --git a/extensions/extb_oper.c b/extensions/extb_oper.c index 1022d56d..0505df2a 100644 --- a/extensions/extb_oper.c +++ b/extensions/extb_oper.c @@ -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) diff --git a/extensions/extb_realname.c b/extensions/extb_realname.c index 13c09b08..f0ad8463 100644 --- a/extensions/extb_realname.c +++ b/extensions/extb_realname.c @@ -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) diff --git a/extensions/extb_server.c b/extensions/extb_server.c index e8b5a1a7..f637b6a8 100644 --- a/extensions/extb_server.c +++ b/extensions/extb_server.c @@ -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) diff --git a/extensions/extb_ssl.c b/extensions/extb_ssl.c index 20e18786..f6abc2a5 100644 --- a/extensions/extb_ssl.c +++ b/extensions/extb_ssl.c @@ -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) diff --git a/extensions/extb_usermode.c b/extensions/extb_usermode.c index 79542f86..c7f11dd0 100644 --- a/extensions/extb_usermode.c +++ b/extensions/extb_usermode.c @@ -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)