]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
commands are always lowercased in interpreter
authorEvan Prodromou <evan@status.net>
Thu, 3 Feb 2011 22:06:15 +0000 (17:06 -0500)
committerEvan Prodromou <evan@status.net>
Thu, 3 Feb 2011 22:06:15 +0000 (17:06 -0500)
lib/commandinterpreter.php

index 2e79fb27ee0a44061061f3399b7aef4de770300f..f2caf48bdb47d5ff9cf01714429c3002bdb17234 100644 (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;