From: Evan Prodromou Date: Thu, 3 Feb 2011 22:06:15 +0000 (-0500) Subject: commands are always lowercased in interpreter X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d7b2b141be24b8de813733bafb07e624c99e4a02;p=quix0rs-gnu-social.git commands are always lowercased in interpreter --- 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;