Commit Diff


commit - afb59ab8e5ccf5d48c78dab53e8ec64d21829a8d
commit + 4693226d6983b5ed4bd74b32a8daa9a3124ed17c
blob - ad8c0506905eca3fdaf5787914be740b7a4b9e21
blob + e990cfd7a0397d2f6e42c9e42dc7d4d10db2a8af
--- src/ngircd/irc.c
+++ src/ngircd/irc.c
@@ -744,10 +744,7 @@ Send_Message_Mask(CLIENT * from, char * command, char 
 	 * dot (".") and no wildcards ("*", "?") following the last one.
 	 */
 	check_wildcards = strrchr(targetMask, '.');
-	assert(check_wildcards != NULL);
-	if (check_wildcards &&
-		check_wildcards[strcspn(check_wildcards, "*?")])
-	{
+	if (!check_wildcards || check_wildcards[strcspn(check_wildcards, "*?")]) {
 		if (!SendErrors)
 			return true;
 		return IRC_WriteErrClient(from, ERR_WILDTOPLEVEL, targetMask);