X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fcommandinterpreter.php;h=d1574c55fda95dca5bd4ef01abe62f9899351cbf;hb=edb467978d49e53da95e4d69ea9733395fed0aa3;hp=6b1b70055e06c5c9ed29b87acd075009fb450deb;hpb=4cf04508090ba7ad5fbc4d8a7d13d40aeb3f5bf4;p=quix0rs-gnu-social.git diff --git a/lib/commandinterpreter.php b/lib/commandinterpreter.php index 6b1b70055e..d1574c55fd 100644 --- a/lib/commandinterpreter.php +++ b/lib/commandinterpreter.php @@ -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; @@ -313,7 +339,7 @@ class CommandInterpreter default: $result = false; } - + Event::handle('EndInterpretCommand', array($cmd, $arg, $user, &$result)); }