Selaa lähdekoodia

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".
tags/v2.10.0-rc1
Shivaram Lingamneni 2 vuotta sitten
vanhempi
commit
7201f14b8b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      irc/client_lookup_set.go

+ 1
- 1
irc/client_lookup_set.go Näytä tiedosto

@@ -117,7 +117,7 @@ func (clients *ClientManager) SetNick(client *Client, session *Session, newNick
117 117
 	}
118 118
 
119 119
 	if useAccountName {
120
-		if registered && newNick != accountName && newNick != "" {
120
+		if registered && newNick != accountName {
121 121
 			return "", errNickAccountMismatch, false
122 122
 		}
123 123
 		newNick = accountName

Loading…
Peruuta
Tallenna