Proper IPbans in the database

This commit is contained in:
calzoneman 2013-03-23 22:01:37 -05:00
parent 0b56909e20
commit df54f8bffc
4 changed files with 56 additions and 9 deletions

View file

@ -86,6 +86,15 @@ function addUserDropdown(entry, name) {
});
});
var ban = $('<li />').appendTo(ul);
var a = $('<a />').attr("tabindex", "-1").attr("href", "#").appendTo(ban);
a.text("IP Ban");
a.click(function() {
socket.emit('chatMsg', {
msg: "/ban " + name
});
});
$('<li />').addClass("divider").appendTo(ul);
var promote = $('<li />').appendTo(ul);