|
@@ -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) {
|