]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/commandinterpreter.php
commands are always lowercased in interpreter
[quix0rs-gnu-social.git] / 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;