0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-18 07:50:57 +01:00

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]
This commit is contained in:
Aaron Jones 2016-03-28 03:05:16 +01:00
parent 33d43d4fa4
commit fef6857e3f
No known key found for this signature in database
GPG key ID: 6E854C0FAAD4CEA4

View file

@ -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,