mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
* Fixed: restore show subcommands for .help <command> if any.
This commit is contained in:
parent
ad5f559dad
commit
3c83482679
1 changed files with 2 additions and 1 deletions
|
|
@ -702,7 +702,8 @@ bool ChatHandler::ShowHelpForSubCommands(ChatCommand *table, char const* cmd, ch
|
|||
if(m_session->GetSecurity() < table[i].SecurityLevel)
|
||||
continue;
|
||||
|
||||
if( !hasStringAbbr(table[i].Name, subcmd) )
|
||||
/// for empty subcmd show all available
|
||||
if( *subcmd && !hasStringAbbr(table[i].Name, subcmd))
|
||||
continue;
|
||||
|
||||
(list += "\n ") += table[i].Name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue