From d7b2b141be24b8de813733bafb07e624c99e4a02 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 3 Feb 2011 17:06:15 -0500 Subject: [PATCH] commands are always lowercased in interpreter --- lib/commandinterpreter.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/commandinterpreter.php b/lib/commandinterpreter.php index 2e79fb27ee..f2caf48bdb 100644 --- a/lib/commandinterpreter.php +++ b/lib/commandinterpreter.php @@ -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;