$cmd = strtolower($cmd);
- if (Event::handle('StartIntepretCommand', array($cmd, $arg, $user, &$result))) {
+ if (Event::handle('StartInterpretCommand', array($cmd, $arg, $user, &$result))) {
switch($cmd) {
case 'help':
if ($arg) {
}
}
break;
- case 'fav':
- if (!$arg) {
- $result = null;
- } else {
- list($other, $extra) = $this->split_arg($arg);
- if ($extra) {
- $result = null;
- } else {
- $result = new FavCommand($user, $other);
- }
- }
- break;
case 'nudge':
if (!$arg) {
$result = null;