From: Aaron Jones Date: Mon, 28 Mar 2016 02:05:16 +0000 (+0100) Subject: extensions: Fix duplicate extban character usage X-Git-Url: https://jfr.im/git/solanum.git/commitdiff_plain/fef6857e3f2e63af00d9716af14cc78afdf71eff 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] --- diff --git a/extensions/extb_usermode.c b/extensions/extb_usermode.c index a8acc0a2..87cba51e 100644 --- a/extensions/extb_usermode.c +++ b/extensions/extb_usermode.c @@ -26,7 +26,7 @@ DECLARE_MODULE_AV2(extb_usermode, _modinit, _moddeinit, NULL, NULL, NULL, NULL, static int _modinit(void) { - extban_table['m'] = eb_usermode; + extban_table['u'] = eb_usermode; return 0; } @@ -34,7 +34,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,