// StatusNet
$cmd = strtolower($cmd);
+ $result = false;
if (Event::handle('StartInterpretCommand', array($cmd, $arg, $user, &$result))) {
switch($cmd) {
$result = new ReplyCommand($user, $other, $extra);
}
break;
- case 'repeat':
- case 'rp':
- case 'rt':
- case 'rd':
- if (!$arg) {
- $result = null;
- } else {
- list($other, $extra) = self::split_arg($arg);
- if ($extra) {
- $result = null;
- } else {
- $result = new RepeatCommand($user, $other);
- }
- }
- break;
case 'whois':
if (!$arg) {
$result = null;
$result = new TrackingCommand($user);
}
break;
- default:
- $result = false;
}
Event::handle('EndInterpretCommand', array($cmd, $arg, $user, &$result));