summaryrefslogtreecommitdiffstats
path: root/ajax/chat.ajax.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-02-28 23:09:41 -0800
committerPatrick Davison <snapwilliam@gmail.com>2013-02-28 23:09:41 -0800
commitfe36da64909a2ad8b7f48be5b4307ed6115ecc39 (patch)
tree2e0ef78aabc2efb3fca2dde58f9c28c67b3466c0 /ajax/chat.ajax.php
parent60fa55b49e8f4cf8570882b5eb6ad3f9bbb7885b (diff)
downloadpathery-fe36da64909a2ad8b7f48be5b4307ed6115ecc39.tar.xz
Chat /me and URL Linking
Diffstat (limited to 'ajax/chat.ajax.php')
-rw-r--r--ajax/chat.ajax.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/ajax/chat.ajax.php b/ajax/chat.ajax.php
index 5ac77e4..ac682a7 100644
--- a/ajax/chat.ajax.php
+++ b/ajax/chat.ajax.php
@@ -49,13 +49,14 @@ if ($_REQUEST['messages']) {
$insertID = addchat(-1, substr($message, 5));
}
}
- //Anyone commands:
- if ($command == 'spoiler') {
+ //javascript based commands:
+ if ($command == 'spoiler' OR $command == 'me') {
$insertID = addchat($userID, $message);
}
+ //For anyone
if ($command == 'help') {
$r[0]['serverMessage'] = 'true';
- $r[0]['message'] = "Commands: /help /time /spoiler . - Chat by Pathery.com";
+ $r[0]['message'] = "Commands: /help /time /spoiler /me. - Chat by Pathery.com";
$r[0]['secondsSince'] = 0;
$r[0]['userID'] = -1;
echo json_encode($r);