We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit d7b2b141 authored by Evan Prodromou's avatar Evan Prodromou

commands are always lowercased in interpreter

parent 21feac3b
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment