summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pages/chat.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/pages/chat.php b/pages/chat.php
index ba99694..b90226c 100644
--- a/pages/chat.php
+++ b/pages/chat.php
@@ -98,10 +98,12 @@ function getChatDone(data) {
p = p+ " </span>";
p = p+ " </div>";
+ //Message is legitmently new or a server message?
+ if (user.ID > lastID || typeof(user.ID) == 'undefined') {
+ items.push('<div class="chatMessage'+strClass+'" id="C_' + user.ID + '">' + p + '</div>');
+ newChats = true;
+ }
if (user.ID > 0) lastID = user.ID;
-
- items.push('<div class="chatMessage'+strClass+'" id="C_' + user.ID + '">' + p + '</div>');
- newChats = true;
});
//console.log("BUILD DONE");