commands are always lowercased in interpreter
This commit is contained in:
parent
21feac3bea
commit
d7b2b141be
@ -35,8 +35,10 @@ class CommandInterpreter
|
|||||||
// There are a few compatibility commands from earlier versions of
|
// There are a few compatibility commands from earlier versions of
|
||||||
// StatusNet
|
// StatusNet
|
||||||
|
|
||||||
|
$cmd = strtolower($cmd);
|
||||||
|
|
||||||
if (Event::handle('StartIntepretCommand', array($cmd, $arg, $user, &$result))) {
|
if (Event::handle('StartIntepretCommand', array($cmd, $arg, $user, &$result))) {
|
||||||
switch(strtolower($cmd)) {
|
switch($cmd) {
|
||||||
case 'help':
|
case 'help':
|
||||||
if ($arg) {
|
if ($arg) {
|
||||||
$result = null;
|
$result = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user