summaryrefslogtreecommitdiff
path: root/lib/commandinterpreter.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-10-27 22:30:21 -0400
committerCraig Andrews <candrews@integralblue.com>2009-10-27 22:30:21 -0400
commitda16dc05a81e2fcc1ed89fe16717f2652265f23a (patch)
tree0bb8bdeed85dda9a6ce6c12972db24668771ff65 /lib/commandinterpreter.php
parent7b30e3c00f9fea529ee71a9783006956960ca5e2 (diff)
Added a new "reply" command
Diffstat (limited to 'lib/commandinterpreter.php')
-rw-r--r--lib/commandinterpreter.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/commandinterpreter.php b/lib/commandinterpreter.php
index 60fc4c3c4..b921a17cc 100644
--- a/lib/commandinterpreter.php
+++ b/lib/commandinterpreter.php
@@ -134,6 +134,17 @@ class CommandInterpreter
} else {
return new MessageCommand($user, $other, $extra);
}
+ case 'r':
+ case 'reply':
+ if (!$arg) {
+ return null;
+ }
+ list($other, $extra) = $this->split_arg($arg);
+ if (!$extra) {
+ return null;
+ } else {
+ return new ReplyCommand($user, $other, $extra);
+ }
case 'whois':
if (!$arg) {
return null;