return logic tidied up for command interpretation

This commit is contained in:
Mikael Nordfeldth 2015-06-02 14:25:45 +02:00
parent 2bf0ec719d
commit c5da7306bd
2 changed files with 1 additions and 4 deletions

View File

@ -298,8 +298,6 @@ class CommandInterpreter
$result = new TrackingCommand($user); $result = new TrackingCommand($user);
} }
break; break;
default:
$result = false;
} }
Event::handle('EndInterpretCommand', array($cmd, $arg, $user, &$result)); Event::handle('EndInterpretCommand', array($cmd, $arg, $user, &$result));

View File

@ -402,9 +402,8 @@ abstract class ImPlugin extends Plugin
$chan = new IMChannel($this); $chan = new IMChannel($this);
$cmd->execute($chan); $cmd->execute($chan);
return true; return true;
} else {
return false;
} }
return false;
} }
/** /**