mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 10:10:08 -08:00
fix #908
This commit is contained in:
parent
0cce086367
commit
8acd58e263
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ func performNickChange(server *Server, client *Client, target *Client, session *
|
||||||
} else if err == errNickAccountMismatch {
|
} else if err == errNickAccountMismatch {
|
||||||
// this used to use ERR_NICKNAMEINUSE, but it displayed poorly in some clients;
|
// this used to use ERR_NICKNAMEINUSE, but it displayed poorly in some clients;
|
||||||
// ERR_UNKNOWNERROR at least has a better chance of displaying our error text
|
// ERR_UNKNOWNERROR at least has a better chance of displaying our error text
|
||||||
rb.Add(nil, server.name, ERR_UNKNOWNERROR, currentNick, "NICK", client.t(err.Error()))
|
rb.Add(nil, server.name, ERR_UNKNOWNERROR, currentNick, "NICK", client.t("You must use your account name as your nickname"))
|
||||||
} else if err == errNickMissing {
|
} else if err == errNickMissing {
|
||||||
rb.Add(nil, server.name, ERR_NONICKNAMEGIVEN, currentNick, client.t("No nickname given"))
|
rb.Add(nil, server.name, ERR_NONICKNAMEGIVEN, currentNick, client.t("No nickname given"))
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue