downstream: improve ERR_ERRONEUSNICKNAME message a bit

This commit is contained in:
Simon Ser 2022-03-16 12:33:23 +01:00
parent 5feae506d4
commit 777adbd5e1

View File

@ -709,7 +709,7 @@ func (dc *downstreamConn) handleMessageUnregistered(ctx context.Context, msg *ir
if nick == "" || strings.ContainsAny(nick, illegalNickChars) {
return ircError{&irc.Message{
Command: irc.ERR_ERRONEUSNICKNAME,
Params: []string{dc.nick, nick, "contains illegal characters"},
Params: []string{dc.nick, nick, "Nickname contains illegal characters"},
}}
}
nickCM := casemapASCII(nick)
@ -1690,7 +1690,7 @@ func (dc *downstreamConn) handleMessageRegistered(ctx context.Context, msg *irc.
if nick == "" || strings.ContainsAny(nick, illegalNickChars) {
return ircError{&irc.Message{
Command: irc.ERR_ERRONEUSNICKNAME,
Params: []string{dc.nick, rawNick, "contains illegal characters"},
Params: []string{dc.nick, rawNick, "Nickname contains illegal characters"},
}}
}
if casemapASCII(nick) == serviceNickCM {