Fix chat messages not working for anonymous users
This commit is contained in:
parent
0365de5a1a
commit
109260e46c
|
@ -131,15 +131,17 @@ function addUserDropdown(entry, name) {
|
||||||
|
|
||||||
function formatChatMessage(data) {
|
function formatChatMessage(data) {
|
||||||
var div = $("<div/>");
|
var div = $("<div/>");
|
||||||
if(data.msg.toUpperCase().indexOf(uname.toUpperCase()) != -1) {
|
if(uname) {
|
||||||
div.addClass("nick-highlight");
|
if(data.msg.toUpperCase().indexOf(uname.toUpperCase()) != -1) {
|
||||||
if(!FOCUSED) {
|
div.addClass("nick-highlight");
|
||||||
TITLE_BLINK = setInterval(function() {
|
if(!FOCUSED) {
|
||||||
if(document.title == "*Chat*")
|
TITLE_BLINK = setInterval(function() {
|
||||||
document.title = PAGETITLE;
|
if(document.title == "*Chat*")
|
||||||
else
|
document.title = PAGETITLE;
|
||||||
document.title = "*Chat*";
|
else
|
||||||
}, 1000);
|
document.title = "*Chat*";
|
||||||
|
}, 1000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(data.msgclass == "action") {
|
if(data.msgclass == "action") {
|
||||||
|
|
Loading…
Reference in a new issue