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:
parent
e3af723d23
commit
604ab13778
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ DECLARE_MODULE_AV1(extb_usermode, _modinit, _moddeinit, NULL, NULL, NULL, "$Revi
|
||||||
static int
|
static int
|
||||||
_modinit(void)
|
_modinit(void)
|
||||||
{
|
{
|
||||||
extban_table['m'] = eb_usermode;
|
extban_table['u'] = eb_usermode;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ _modinit(void)
|
||||||
static void
|
static void
|
||||||
_moddeinit(void)
|
_moddeinit(void)
|
||||||
{
|
{
|
||||||
extban_table['m'] = NULL;
|
extban_table['u'] = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int eb_usermode(const char *data, struct Client *client_p,
|
static int eb_usermode(const char *data, struct Client *client_p,
|
||||||
|
|
Loading…
Reference in a new issue