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,6 +131,7 @@ function addUserDropdown(entry, name) {
function formatChatMessage(data) {
var div = $("<div/>");
if(uname) {
if(data.msg.toUpperCase().indexOf(uname.toUpperCase()) != -1) {
div.addClass("nick-highlight");
if(!FOCUSED) {
@ -142,6 +143,7 @@ function formatChatMessage(data) {
}, 1000);
}
}
}
if(data.msgclass == "action") {
var message = $("<span/>")
.addClass("action")