tag / untag commands for people tags

This commit is contained in:
Shashi Gowda
2011-03-07 00:46:42 +05:30
parent c335db4bbc
commit b176f0fb58
2 changed files with 126 additions and 0 deletions

View File

@@ -274,6 +274,32 @@ class CommandInterpreter
}
}
break;
case 'list':
case 'tag':
if (!$arg) {
$result = null;
break;
}
list($other, $tags) = $this->split_arg($arg);
if (!$tags) {
$result = null;
} else {
$result = new TagCommand($user, $other, $tags);
}
break;
case 'unlist':
case 'untag':
if (!$arg) {
$result = null;
break;
}
list($other, $tags) = $this->split_arg($arg);
if (!$tags) {
$result = null;
} else {
$result = new UntagCommand($user, $other, $tags);
}
break;
case 'track':
if (!$arg) {
$result = null;