commands are always lowercased in interpreter

This commit is contained in:
Evan Prodromou 2011-02-03 17:06:15 -05:00
parent 21feac3bea
commit d7b2b141be
1 changed files with 3 additions and 1 deletions

View File

@ -35,8 +35,10 @@ class CommandInterpreter
// There are a few compatibility commands from earlier versions of
// StatusNet
$cmd = strtolower($cmd);
if (Event::handle('StartIntepretCommand', array($cmd, $arg, $user, &$result))) {
switch(strtolower($cmd)) {
switch($cmd) {
case 'help':
if ($arg) {
$result = null;