summaryrefslogtreecommitdiffstats
path: root/pages/chat.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-05-29 23:14:46 -0700
committerPatrick Davison <snapwilliam@gmail.com>2013-05-29 23:14:46 -0700
commitd55563d890113b3ab3c49b513a34124e1df8c704 (patch)
treee1fb1b40ad3e845d6df08e323a21c570f134e3ea /pages/chat.php
parent7b0dbb4a8a57b1ee3ab3dc5abb871311ae434d7f (diff)
parent550a14a669ca4271db64856ff7c7ce376fc2cd34 (diff)
downloadpathery-d55563d890113b3ab3c49b513a34124e1df8c704.tar.xz
Merge
Diffstat (limited to 'pages/chat.php')
-rw-r--r--pages/chat.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/pages/chat.php b/pages/chat.php
index 8d3501b..4f903a8 100644
--- a/pages/chat.php
+++ b/pages/chat.php
@@ -1,7 +1,7 @@
<?php
htmlHeader(
array('stats', 'chat'), 'Chat',
- 'BetaChat for Pathery.com',
+ 'Chat for Pathery.com',
array('scores', 'dateformat')
);
?>
@@ -76,7 +76,7 @@ function getChatDone(data) {
if (chat.userID == userObj.ID) {
strClass += ' self';
}
- if (chat.userID == '-1') {
+ if (chat.userID == null || chat.userID <= 0) {
strClass += ' server';
chat.displayName = 'SERVER'
}
@@ -110,7 +110,7 @@ function getChatDone(data) {
p = p+ " </div>";
p = p+ " <div class='chatColumn2'>";
- if (chat.userID == '-1') {
+ if (chat.userID == null || chat.userID <= 0) {
p = p+ "<span class='chatUsername"+usernameClass+"'><a href='home'>";
} else {
p = p+ "<span class='chatUsername"+usernameClass+"'><a href='achievements?id="+chat.userID+"' style='color:"+chat.displayColor+"'>";