Allow looking the help of an alias

This commit is contained in:
Shoghi Cervantes Pueyo
2013-04-16 19:41:37 +02:00
parent f1cb29cc8b
commit 3d48eec887
3 changed files with 4 additions and 3 deletions

View File

@@ -122,7 +122,8 @@ class ConsoleAPI{
case "help":
if(isset($params[0]) and !is_numeric($params[0])){
$c = trim(strtolower($params[0]));
if(isset($this->help[$c])){
if(isset($this->help[$c]) or isset($this->alias[$c])){
$c = isset($this->help[$c]) ? $c : $this->alias[$c];
$output .= "Usage: /$c ".$this->help[$c]."\n";
break;
}