Fix chat messages not working for anonymous users

This commit is contained in:
calzoneman 2013-04-06 20:56:47 -05:00
parent 0365de5a1a
commit 109260e46c

View file

@ -131,15 +131,17 @@ function addUserDropdown(entry, name) {
function formatChatMessage(data) {
var div = $("<div/>");
if(data.msg.toUpperCase().indexOf(uname.toUpperCase()) != -1) {
div.addClass("nick-highlight");
if(!FOCUSED) {
TITLE_BLINK = setInterval(function() {
if(document.title == "*Chat*")
document.title = PAGETITLE;
else
document.title = "*Chat*";
}, 1000);
if(uname) {
if(data.msg.toUpperCase().indexOf(uname.toUpperCase()) != -1) {
div.addClass("nick-highlight");
if(!FOCUSED) {
TITLE_BLINK = setInterval(function() {
if(document.title == "*Chat*")
document.title = PAGETITLE;
else
document.title = "*Chat*";
}, 1000);
}
}
}
if(data.msgclass == "action") {