extb_hostmask: handle banstr == NULL

This commit is contained in:
Ed Kellett 2020-07-30 19:58:35 +01:00
parent a860e8f6fe
commit a7bd528f61

View file

@ -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;
} }