From 27890e2d86134b93f15fafd206addf38a5fe0b49 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Mon, 20 Oct 2008 12:28:39 +0400 Subject: [PATCH] * Fixed: restore show subcommands for .help if any. --- src/game/Chat.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp index a45c217..c79eb65 100644 --- a/src/game/Chat.cpp +++ b/src/game/Chat.cpp @@ -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; -- 2.11.4.GIT