Fix unban bug

This commit is contained in:
calzoneman 2013-06-25 09:59:14 -04:00
parent 0f40ac6243
commit 11e91d02fb
2 changed files with 3 additions and 3 deletions

View File

@ -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);
} }
} }

View File

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