Przeglądaj źródła

fix #632

tags/v1.2.0-rc1
Shivaram Lingamneni 4 lat temu
rodzic
commit
06b1e7b603
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      irc/client_lookup_set.go

+ 1
- 1
irc/client_lookup_set.go Wyświetl plik

@@ -155,7 +155,7 @@ func (clients *ClientManager) SetNick(client *Client, session *Session, newNick
155 155
 	// the client may just be changing case
156 156
 	if currentClient != nil && currentClient != client && session != nil {
157 157
 		// these conditions forbid reattaching to an existing session:
158
-		if client.Registered() || !bouncerAllowed || account == "" || account != currentClient.Account() || client.isTor != currentClient.isTor || client.HasMode(modes.TLS) != currentClient.HasMode(modes.TLS) {
158
+		if client.Registered() || !bouncerAllowed || account == "" || account != currentClient.Account() || client.HasMode(modes.TLS) != currentClient.HasMode(modes.TLS) {
159 159
 			return errNicknameInUse
160 160
 		}
161 161
 		if !currentClient.AddSession(session) {

Ładowanie…
Anuluj
Zapisz