3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-22 10:42:52 +01:00
Send a WARN NICK ACCOUNT_REQUIRED on attempt to take a reserved nick
This commit is contained in:
Shivaram Lingamneni 2021-03-18 04:10:32 -04:00
parent a6cf667f06
commit 67ee36f1ed

View File

@ -44,6 +44,7 @@ func performNickChange(server *Server, client *Client, target *Client, session *
} else if err == errNicknameReserved {
if !isSanick {
rb.Add(nil, server.name, ERR_NICKNAMEINUSE, details.nick, utils.SafeErrorParam(nickname), client.t("Nickname is reserved by a different account"))
rb.Add(nil, server.name, "WARN", "NICK", "ACCOUNT_REQUIRED", utils.SafeErrorParam(nickname), client.t("Nickname is reserved by a different account"))
} else {
rb.Add(nil, server.name, "FAIL", "SANICK", "NICKNAME_RESERVED", utils.SafeErrorParam(nickname), client.t("Nickname is reserved by a different account"))
}