From 06b1e7b6031404b296ec17a16c18885cc1a0d85b Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Tue, 24 Sep 2019 21:47:37 -0400 Subject: [PATCH] fix #632 --- irc/client_lookup_set.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/client_lookup_set.go b/irc/client_lookup_set.go index 7098bcbe..35e7b41a 100644 --- a/irc/client_lookup_set.go +++ b/irc/client_lookup_set.go @@ -155,7 +155,7 @@ func (clients *ClientManager) SetNick(client *Client, session *Session, newNick // the client may just be changing case if currentClient != nil && currentClient != client && session != nil { // these conditions forbid reattaching to an existing session: - if client.Registered() || !bouncerAllowed || account == "" || account != currentClient.Account() || client.isTor != currentClient.isTor || client.HasMode(modes.TLS) != currentClient.HasMode(modes.TLS) { + if client.Registered() || !bouncerAllowed || account == "" || account != currentClient.Account() || client.HasMode(modes.TLS) != currentClient.HasMode(modes.TLS) { return errNicknameInUse } if !currentClient.AddSession(session) {