summaryrefslogtreecommitdiff
path: root/lib/commandinterpreter.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-11-16 00:19:47 -0500
committerCraig Andrews <candrews@integralblue.com>2009-11-16 00:19:47 -0500
commitf04dbc8fa21d86bae5c34ece2637c3c345e29927 (patch)
tree000ea48e45ccbd13905f8093d9c52f6d2520f143 /lib/commandinterpreter.php
parent6470ccd1b869808d2fca530b9ee53e6a574646c4 (diff)
Add "followers" and "following" commands
Diffstat (limited to 'lib/commandinterpreter.php')
-rw-r--r--lib/commandinterpreter.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/commandinterpreter.php b/lib/commandinterpreter.php
index d878fe268..ecc08f101 100644
--- a/lib/commandinterpreter.php
+++ b/lib/commandinterpreter.php
@@ -47,6 +47,18 @@ class CommandInterpreter
} else {
return new LoginCommand($user);
}
+ case 'followers':
+ if ($arg) {
+ return null;
+ } else {
+ return new FollowersCommand($user);
+ }
+ case 'following':
+ if ($arg) {
+ return null;
+ } else {
+ return new FollowingCommand($user);
+ }
case 'on':
if ($arg) {
list($other, $extra) = $this->split_arg($arg);