mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +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)
|
if(m_session->GetSecurity() < table[i].SecurityLevel)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if( !hasStringAbbr(table[i].Name, subcmd) )
|
/// for empty subcmd show all available
|
||||||
|
if( *subcmd && !hasStringAbbr(table[i].Name, subcmd))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
(list += "\n ") += table[i].Name;
|
(list += "\n ") += table[i].Name;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue