X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fcommandinterpreter.php;h=c546cf0fca94ca34f500a804ad34868981f93f83;hb=945920f24dba53d8367160b221bc842db0768fc4;hp=e7d98da0255048b9786acc8506f72620f1a3aba2;hpb=046d070ad46bb58096664dabb6f7c13a062d847d;p=quix0rs-gnu-social.git diff --git a/lib/commandinterpreter.php b/lib/commandinterpreter.php index e7d98da025..c546cf0fca 100644 --- a/lib/commandinterpreter.php +++ b/lib/commandinterpreter.php @@ -36,6 +36,7 @@ class CommandInterpreter // StatusNet $cmd = strtolower($cmd); + $result = false; if (Event::handle('StartInterpretCommand', array($cmd, $arg, $user, &$result))) { switch($cmd) { @@ -192,21 +193,6 @@ class CommandInterpreter $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; @@ -312,8 +298,6 @@ class CommandInterpreter $result = new TrackingCommand($user); } break; - default: - $result = false; } Event::handle('EndInterpretCommand', array($cmd, $arg, $user, &$result));