diff options
author | Carlos Perilla <deepspawn@valkertown.org> | 2009-08-11 19:09:51 -0500 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-09-01 17:52:08 -0400 |
commit | 5668959399dc953bb59b28e46690e51066d6ab3d (patch) | |
tree | 2ea20185f13fde2aa3c975cf1fc3381cffbe393d /lib/commandinterpreter.php | |
parent | aa7bda4677f1fe7a6168665d4d5e29e8fa2db68c (diff) |
Let users join and drop group membership from xmpp
Diffstat (limited to 'lib/commandinterpreter.php')
-rw-r--r-- | lib/commandinterpreter.php | 20 |
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) { |