1
0
Fork 0
forked from External/ergo

Merge pull request #2136 from slingamn/issue2135_nicknameinuse

fix #2135
This commit is contained in:
Shivaram Lingamneni 2024-03-20 10:48:27 -04:00 committed by GitHub
commit d56e4ea301
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View file

@ -43,6 +43,8 @@ func performNickChange(server *Server, client *Client, target *Client, session *
}
} else if err == errNicknameReserved {
if !isSanick {
// see #1594 for context: ERR_NICKNAMEINUSE can confuse clients if the nickname is not
// literally in use:
if !client.registered {
rb.Add(nil, server.name, ERR_NICKNAMEINUSE, details.nick, utils.SafeErrorParam(nickname), client.t("Nickname is reserved by a different account"))
}