mirror of https://github.com/calzoneman/sync.git
Fix unban bug
This commit is contained in:
parent
0f40ac6243
commit
11e91d02fb
|
@ -502,7 +502,7 @@ Channel.prototype.tryUnban = function(actor, data) {
|
||||||
var ip = this.hideIP(data.ip_hidden);
|
var ip = this.hideIP(data.ip_hidden);
|
||||||
this.unbanIP(actor, ip);
|
this.unbanIP(actor, ip);
|
||||||
}
|
}
|
||||||
else if(data.name) {
|
if(data.name) {
|
||||||
this.unbanName(actor, data.name);
|
this.unbanName(actor, data.name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -341,9 +341,9 @@ Callbacks = {
|
||||||
var aliases = $("<td/>").text(entries[i].aliases.join(", ")).appendTo(tr);
|
var aliases = $("<td/>").text(entries[i].aliases.join(", ")).appendTo(tr);
|
||||||
var banner = $("<td/>").text(entries[i].banner).appendTo(tr);
|
var banner = $("<td/>").text(entries[i].banner).appendTo(tr);
|
||||||
|
|
||||||
var callback = (function(ip, name) { return function() {
|
var callback = (function(ip_hidden, name) { return function() {
|
||||||
socket.emit("unban", {
|
socket.emit("unban", {
|
||||||
ip: ip,
|
ip_hidden: ip_hidden,
|
||||||
name: name
|
name: name
|
||||||
});
|
});
|
||||||
} })(entries[i].ip_hidden, entries[i].name);
|
} })(entries[i].ip_hidden, entries[i].name);
|
||||||
|
|
Loading…
Reference in New Issue