Fix nickname in ERR_ERRONEOUSNICKNAME

This commit is contained in:
Simon Ser 2020-11-24 14:22:39 +01:00
parent 16c68b21b5
commit 473a0f018b
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -1086,7 +1086,7 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
if strings.ContainsAny(nick, illegalNickChars) {
return ircError{&irc.Message{
Command: irc.ERR_ERRONEUSNICKNAME,
Params: []string{dc.nick, nick, "contains illegal characters"},
Params: []string{dc.nick, rawNick, "contains illegal characters"},
}}
}
if nick == serviceNick {