Let users join and drop group membership from xmpp

This commit is contained in:
Carlos Perilla
2009-08-11 19:09:51 -05:00
committed by Craig Andrews
parent aa7bda4677
commit 5668959399
2 changed files with 124 additions and 1 deletions

View File

@@ -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) {