mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 10:10:08 -08:00
partial fix for #1933
If the nickname must equal the account name (because always-on or force-nick-equals-account), the correct error response to an empty or otherwise invalid nickname is the usual "You must use your account name as your nickname".
This commit is contained in:
parent
504cc44bf7
commit
7201f14b8b
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ func (clients *ClientManager) SetNick(client *Client, session *Session, newNick
|
|||
}
|
||||
|
||||
if useAccountName {
|
||||
if registered && newNick != accountName && newNick != "" {
|
||||
if registered && newNick != accountName {
|
||||
return "", errNickAccountMismatch, false
|
||||
}
|
||||
newNick = accountName
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue