summary refs log tree commit diff
path: root/src/ngircd/irc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ngircd/irc.c')
-rw-r--r--src/ngircd/irc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c
index ef0e95ce..bd741cbb 100644
--- a/src/ngircd/irc.c
+++ b/src/ngircd/irc.c
@@ -771,7 +771,8 @@ Send_Message_Mask(CLIENT * from, char * command, char * targetMask,
 	if (!check_wildcards || check_wildcards[strcspn(check_wildcards, "*?")]) {
 		if (!SendErrors)
 			return true;
-		return IRC_WriteErrClient(from, ERR_WILDTOPLEVEL, targetMask);
+		return IRC_WriteErrClient(from, ERR_WILDTOPLEVEL_MSG,
+					  targetMask);
 	}
 
 	if (targetMask[0] == '#') {