mirror of https://github.com/calzoneman/sync.git
Fix un-unbannable bans
This commit is contained in:
parent
176dd58284
commit
fac962795a
|
@ -215,7 +215,7 @@ Channel.prototype.unbanIP = function(actor, ip) {
|
||||||
if(!Rank.hasPermission(actor, "ipban"))
|
if(!Rank.hasPermission(actor, "ipban"))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
delete this.ipbans[ip];
|
this.ipbans[ip] = null;
|
||||||
|
|
||||||
if(!this.registered)
|
if(!this.registered)
|
||||||
return false;
|
return false;
|
||||||
|
@ -257,7 +257,7 @@ Channel.prototype.search = function(query, callback) {
|
||||||
|
|
||||||
Channel.prototype.userJoin = function(user) {
|
Channel.prototype.userJoin = function(user) {
|
||||||
// GTFO
|
// 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");
|
this.logger.log("--- Kicking " + user.ip + " - banned");
|
||||||
user.socket.disconnect();
|
user.socket.disconnect();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue