mirror of
https://github.com/jeremyd/ergo.git
synced 2026-06-02 19:23:34 -07: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:
@@ -117,7 +117,7 @@ func (clients *ClientManager) SetNick(client *Client, session *Session, newNick
|
|||||||
}
|
}
|
||||||
|
|
||||||
if useAccountName {
|
if useAccountName {
|
||||||
if registered && newNick != accountName && newNick != "" {
|
if registered && newNick != accountName {
|
||||||
return "", errNickAccountMismatch, false
|
return "", errNickAccountMismatch, false
|
||||||
}
|
}
|
||||||
newNick = accountName
|
newNick = accountName
|
||||||
|
|||||||
Reference in New Issue
Block a user