mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-22 10:42:52 +01:00
fix #1594
Send a WARN NICK ACCOUNT_REQUIRED on attempt to take a reserved nick
This commit is contained in:
parent
a6cf667f06
commit
67ee36f1ed
@ -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"))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user