extb_hostmask: handle banstr == NULL
This commit is contained in:
parent
a860e8f6fe
commit
a7bd528f61
1 changed files with 2 additions and 0 deletions
|
@ -32,5 +32,7 @@ _moddeinit(void)
|
||||||
static int
|
static int
|
||||||
eb_hostmask(const char *banstr, struct Client *client_p, struct Channel *chptr, long mode_type)
|
eb_hostmask(const char *banstr, struct Client *client_p, struct Channel *chptr, long mode_type)
|
||||||
{
|
{
|
||||||
|
if (banstr == NULL)
|
||||||
|
return EXTBAN_INVALID;
|
||||||
return client_matches_mask(client_p, banstr) ? EXTBAN_MATCH : EXTBAN_NOMATCH;
|
return client_matches_mask(client_p, banstr) ? EXTBAN_MATCH : EXTBAN_NOMATCH;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue