diff --git a/lib/channel/channel.js b/lib/channel/channel.js index f13ef131..4ba3f4a7 100644 --- a/lib/channel/channel.js +++ b/lib/channel/channel.js @@ -334,7 +334,6 @@ Channel.prototype.acceptUser = function (user) { if (user.socket._isUsingTor) { if (this.modules.options && this.modules.options.get("torbanned")) { user.kick("This channel has banned connections from Tor."); - user.socket.disconnect(true); this.logger.log("[login] Blocked connection from Tor exit at " + user.displayip); return; diff --git a/lib/io/ioserver.js b/lib/io/ioserver.js index 93f0fab7..8d4308d7 100644 --- a/lib/io/ioserver.js +++ b/lib/io/ioserver.js @@ -87,7 +87,7 @@ function ipLimitReached(sock) { sock.emit("kick", { reason: "Too many connections from your IP address" }); - sock.disconnect(true); + sock.disconnect(); return; } } @@ -154,7 +154,7 @@ function handleConnection(sock) { if (db.isGlobalIPBanned(ip)) { Logger.syslog.log("Rejecting " + ip + " - global banned"); sock.emit("kick", { reason: "Your IP is globally banned." }); - sock.disconnect(true); + sock.disconnect(); return; } diff --git a/lib/user.js b/lib/user.js index 7fe3ff65..c69b5982 100644 --- a/lib/user.js +++ b/lib/user.js @@ -219,7 +219,7 @@ User.prototype.autoAFK = function () { User.prototype.kick = function (reason) { this.socket.emit("kick", { reason: reason }); - this.socket.disconnect(true); + this.socket.disconnect(); }; User.prototype.initAdminCallbacks = function () {