From 3ea64f75812b7cdf81d9bc404ee9f50f16054b6c Mon Sep 17 00:00:00 2001 From: KingPin Date: Tue, 28 Oct 2008 08:10:44 -0500 Subject: [svn] * Prevent crash at access to deleted social data for player. Remove social data at logout instead - source mangos * Fixed subcommands list output at console. - source mangos * Rename scripts update. --HG-- branch : trunk --- src/game/Chat.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/game/Chat.cpp') diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp index 67c79642631..0b1bf2e60b6 100644 --- a/src/game/Chat.cpp +++ b/src/game/Chat.cpp @@ -795,7 +795,13 @@ bool ChatHandler::ShowHelpForSubCommands(ChatCommand *table, char const* cmd, ch if( *subcmd && !hasStringAbbr(table[i].Name, subcmd)) continue; - (list += "\n ") += table[i].Name; + if(m_session) + list += "\n "; + else + list += "\n\r "; + + list += table[i].Name; + if(table[i].ChildCommands) list += " ..."; } -- cgit v1.2.3