summaryrefslogtreecommitdiff
path: root/lib/commandinterpreter.php
diff options
context:
space:
mode:
authorCarlos Perilla <deepspawn@valkertown.org>2009-08-11 19:09:51 -0500
committerCraig Andrews <candrews@integralblue.com>2009-09-01 17:52:08 -0400
commit5668959399dc953bb59b28e46690e51066d6ab3d (patch)
tree2ea20185f13fde2aa3c975cf1fc3381cffbe393d /lib/commandinterpreter.php
parentaa7bda4677f1fe7a6168665d4d5e29e8fa2db68c (diff)
Let users join and drop group membership from xmpp
Diffstat (limited to 'lib/commandinterpreter.php')
-rw-r--r--lib/commandinterpreter.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/commandinterpreter.php b/lib/commandinterpreter.php
index ac6bf73c8..6e4340e5d 100644
--- a/lib/commandinterpreter.php
+++ b/lib/commandinterpreter.php
@@ -70,6 +70,26 @@ class CommandInterpreter
} else {
return new OffCommand($user);
}
+ case 'join':
+ if (!$arg) {
+ return null;
+ }
+ list($other, $extra) = explode(' ', $arg, 2);
+ if ($extra) {
+ return null;
+ } else {
+ return new JoinCommand($user, $other);
+ }
+ case 'drop':
+ if (!$arg) {
+ return null;
+ }
+ list($other, $extra) = explode(' ', $arg, 2);
+ if ($extra) {
+ return null;
+ } else {
+ return new DropCommand($user, $other);
+ }
case 'follow':
case 'sub':
if (!$arg) {