Fixed authentication issue with chat

This commit is contained in:
Kasper Rynning-Tønnesen
2017-05-06 11:37:46 +02:00
parent 417c928b77
commit 60a7610a28
3 changed files with 4 additions and 4 deletions

View File

@@ -68,7 +68,7 @@ var Chat = {
else if($(".chat-tab-li a.active").attr("href") == "#all_chat")
socket.emit("all,chat", data.value);
else
socket.emit("chat", {channel: chan.toLowerCase(), data: data.value});
socket.emit("chat", {channel: chan.toLowerCase(), data: data.value, pass: embed ? '' : Crypt.crypt_pass(Crypt.get_userpass(chan.toLowerCase()))});
data.value = "";
return;
},