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