]> jfr.im git - solanum.git/blobdiff - extensions/extb_hostmask.c
Remove Windows support
[solanum.git] / extensions / extb_hostmask.c
index 1100e88b14124ab1a9bc03b3ff526a62082739a8..241ac1bb7bf2ea0919a0eb0797c298e15c185c1e 100644 (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;
 }