extb_hostmask: handle banstr == NULL

This commit is contained in:
Ed Kellett 2020-07-30 19:58:35 +01:00
parent a860e8f6fe
commit a7bd528f61
1 changed files with 2 additions and 0 deletions

View File

@ -32,5 +32,7 @@ _moddeinit(void)
static int
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;
}