mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-22 03:49:27 +01: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
@ -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…
Reference in New Issue
Block a user