diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-02-20 02:06:36 -0800 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-02-20 02:06:36 -0800 |
commit | 6352b54fcd4fb87b7d1e53b818ab1df903b282c1 (patch) | |
tree | 725c7b88f2cdfd4c0f0e986d3c6e0a5418991295 | |
parent | b288444a88cfc5393714e7063284d5334b6887f5 (diff) | |
download | pathery-6352b54fcd4fb87b7d1e53b818ab1df903b282c1.tar.xz |
added /time to chat for funzies
-rw-r--r-- | ajax/chat.ajax.php | 10 |
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);
|