Explorar el Código

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 hace 2 años
padre
commit
7201f14b8b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      irc/client_lookup_set.go

+ 1
- 1
irc/client_lookup_set.go Ver fichero

@@ -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…
Cancelar
Guardar