From fac962795ae0c954f14c5bf8513365474ba51185 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sun, 7 Apr 2013 19:31:52 -0500 Subject: [PATCH] Fix un-unbannable bans --- channel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/channel.js b/channel.js index 2f3cfee2..6c5a2bec 100644 --- a/channel.js +++ b/channel.js @@ -215,7 +215,7 @@ Channel.prototype.unbanIP = function(actor, ip) { if(!Rank.hasPermission(actor, "ipban")) return false; - delete this.ipbans[ip]; + this.ipbans[ip] = null; if(!this.registered) return false; @@ -257,7 +257,7 @@ Channel.prototype.search = function(query, callback) { Channel.prototype.userJoin = function(user) { // GTFO - if(user.ip in this.ipbans) { + if(user.ip in this.ipbans && this.ipbans[user.ip] != null) { this.logger.log("--- Kicking " + user.ip + " - banned"); user.socket.disconnect(); return;