Fix passwords (hopefully)

This commit is contained in:
calzoneman 2014-01-25 17:44:32 -06:00
parent e33c6c7860
commit 0329e564a9
3 changed files with 28 additions and 13 deletions

View file

@ -138,7 +138,10 @@ Callbacks = {
var parent = chatDialog(div);
parent.attr("id", "needpw");
var sendpw = function () {
socket.emit("channelPassword", pwbox.val());
socket.emit("joinChannel", {
name: CHANNEL.name,
pw: pwbox.val()
});
parent.remove();
};
submit.click(sendpw);