From 5785fc41e9ca98621f52f84f56aab5735bb23fd6 Mon Sep 17 00:00:00 2001 From: Max Klaversma Date: Thu, 1 May 2014 01:55:04 +0200 Subject: [PATCH] Fixed /help and //help for double commands --- application/core/Commands/HelpManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/core/Commands/HelpManager.php b/application/core/Commands/HelpManager.php index dd4af35d..ec3ca818 100644 --- a/application/core/Commands/HelpManager.php +++ b/application/core/Commands/HelpManager.php @@ -61,7 +61,7 @@ class HelpManager implements CommandListener, CallbackListener { $showCommands = array(); $registeredMethods = array(); foreach(array_reverse($this->adminCommands) as $command) { - if(array_key_exists($command['Method'], $registeredMethods) && $showCommands[$command['Method']]['Description'] == $command['Description']) { + if(array_key_exists($command['Method'], $registeredMethods) && $showCommands[$registeredMethods[$command['Method']]]['Description'] == $command['Description']) { $name = $registeredMethods[$command['Method']]; $showCommands[$name]['Name'] .= '|'.$command['Name']; } else { @@ -92,7 +92,7 @@ class HelpManager implements CommandListener, CallbackListener { $showCommands = array(); $registeredMethods = array(); foreach(array_reverse($this->playerCommands) as $command) { - if(array_key_exists($command['Method'], $registeredMethods) && $showCommands[$command['Method']]['Description'] == $command['Description']) { + if(array_key_exists($command['Method'], $registeredMethods) && $showCommands[$registeredMethods[$command['Method']]]['Description'] == $command['Description']) { $name = $registeredMethods[$command['Method']]; $showCommands[$name]['Name'] .= '|'.$command['Name']; } else {