Made socketeventheaders better, none of that chan,np, just np now

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-13 02:19:25 +02:00
parent 63e0d9104e
commit 0b1d075e5b
6 changed files with 23 additions and 416 deletions

View File

@@ -67,7 +67,7 @@ $(window).focus(function(){
function setup_chat_listener(channel)
{
document.getElementsByClassName("chat-tab")[0].innerHTML = channel;
socket.on("chat,"+channel.toLowerCase(), function(data)
socket.on("chat", function(data)
{
if($("#chat-bar").position()["left"] != 0)
{