Add ability to kick clients

This commit is contained in:
calzoneman 2013-03-05 14:23:02 -06:00
parent 1a88c9e27e
commit 7aafcd7b08
3 changed files with 31 additions and 0 deletions

View file

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