From 604ab1377896a9e6a9ba5630598b256d33b92f09 Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Mon, 28 Mar 2016 03:05:16 +0100 Subject: [PATCH] extensions: Fix duplicate extban character usage extb_usermode and extb_hostmask both use the same extban character ('m'), resulting in only one of the modules being usable (depending on module load order) and neither one functioning if one of them is unloaded. This changes the character for extb_usermode from 'm' to 'u'. [ci skip] --- extensions/extb_usermode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/extb_usermode.c b/extensions/extb_usermode.c index eb087b31..2026c1eb 100644 --- a/extensions/extb_usermode.c +++ b/extensions/extb_usermode.c @@ -24,7 +24,7 @@ DECLARE_MODULE_AV1(extb_usermode, _modinit, _moddeinit, NULL, NULL, NULL, "$Revi static int _modinit(void) { - extban_table['m'] = eb_usermode; + extban_table['u'] = eb_usermode; return 0; } @@ -32,7 +32,7 @@ _modinit(void) static void _moddeinit(void) { - extban_table['m'] = NULL; + extban_table['u'] = NULL; } static int eb_usermode(const char *data, struct Client *client_p,