summaryrefslogtreecommitdiffstats
path: root/ajax
diff options
context:
space:
mode:
Diffstat (limited to 'ajax')
-rw-r--r--ajax/chat.ajax.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/ajax/chat.ajax.php b/ajax/chat.ajax.php
index 1cbd6be..2a55c23 100644
--- a/ajax/chat.ajax.php
+++ b/ajax/chat.ajax.php
@@ -52,7 +52,15 @@ if ($_REQUEST['messages']) {
//Anyone commands:
if ($command == 'help') {
$r[0]['serverMessage'] = 'true';
- $r[0]['message'] = "Commands: /help THE END.";
+ $r[0]['message'] = "Commands: /help /time . - Chat by Pathery.com";
+ $r[0]['secondsSince'] = 0;
+ $r[0]['userID'] = -1;
+ echo json_encode($r);
+ exit;
+ }
+ if ($command == 'time') {
+ $r[0]['serverMessage'] = 'true';
+ $r[0]['message'] = "Server Time: ".date('l jS \of F Y h:i:s A');
$r[0]['secondsSince'] = 0;
$r[0]['userID'] = -1;
echo json_encode($r);