diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2014-03-18 21:53:45 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2014-03-18 21:53:45 -0700 |
commit | 78f79295ac8daf53f19a9456f01adbcb49da31b6 (patch) | |
tree | 556d35945c43498cda83977216bbd594495f6c63 /ajax | |
parent | 640816989a99e069397ed18f3fa703d1ec12d596 (diff) | |
download | pathery-78f79295ac8daf53f19a9456f01adbcb49da31b6.tar.xz |
More memberlist edits
Diffstat (limited to 'ajax')
-rw-r--r-- | ajax/chat.ajax.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ajax/chat.ajax.php b/ajax/chat.ajax.php index 91c5b95..1574bde 100644 --- a/ajax/chat.ajax.php +++ b/ajax/chat.ajax.php @@ -24,6 +24,20 @@ if (strtotime('now') - $chatLastReset > 6) { $_SESSION['chatSendCount'] = 0;
$_SESSION['chatLastReset'] = strtotime('now');
}
+
+//T:
+if (rand(1,4) == 2 || true) {
+ $r[0]['serverMessage'] = 'true';
+ $r[0]['isJoinLeave'] = 'true';
+ $r[0]['message'] = "Server Test";
+ $r[0]['secondsSince'] = 0;
+ $r[0]['displayName'] = 'SERVER';
+ $r[0]['userID'] = null;
+ //echo json_encode($r);
+ //exit;
+}
+
+
if (isset($_REQUEST['messages'])) {
$_SESSION['chatSendCount']++;
if ($_SESSION['chatSendCount'] > 4) {
|