about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2016-01-04 22:10:38 +0100
committerAlexander Barton <alex@barton.de>2016-01-04 22:10:38 +0100
commitcedba36965c3b89a5ab7222764bd751fd7fc88bf (patch)
treef2f339699d27bd25180ac41d2479dcd4f0ffb3f8
parent40bea95c0896433fe07c7d4fe210200e50bddace (diff)
downloadngircd-cedba36965c3b89a5ab7222764bd751fd7fc88bf.tar.gz
ngircd-cedba36965c3b89a5ab7222764bd751fd7fc88bf.zip
Add "_MSG" postfix to ERR_WILDTOPLEVEL_MSG
-rw-r--r--src/ngircd/irc.c3
-rw-r--r--src/ngircd/messages.h2
2 files changed, 3 insertions, 2 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] == '#') {
diff --git a/src/ngircd/messages.h b/src/ngircd/messages.h
index 4f1632b0..818d83b9 100644
--- a/src/ngircd/messages.h
+++ b/src/ngircd/messages.h
@@ -114,7 +114,7 @@
 #define ERR_INVALIDCAP_MSG		"410 %s %s :Invalid CAP subcommand"
 #define ERR_NORECIPIENT_MSG		"411 %s :No recipient given (%s)"
 #define ERR_NOTEXTTOSEND_MSG		"412 %s :No text to send"
-#define ERR_WILDTOPLEVEL		"414 %s :Wildcard in toplevel domain"
+#define ERR_WILDTOPLEVEL_MSG		"414 %s :Wildcard in toplevel domain"
 #define ERR_UNKNOWNCOMMAND_MSG		"421 %s %s :Unknown command"
 #define ERR_NOMOTD_MSG			"422 %s :MOTD file is missing"
 #define ERR_NONICKNAMEGIVEN_MSG		"431 %s :No nickname given"