From 78f79295ac8daf53f19a9456f01adbcb49da31b6 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Tue, 18 Mar 2014 21:53:45 -0700 Subject: More memberlist edits --- ajax/chat.ajax.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ajax') 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) { -- cgit v1.2.3