aboutsummaryrefslogtreecommitdiff
path: root/src/game/Chat.cpp
diff options
context:
space:
mode:
authorKingPin <none@none>2008-10-28 08:10:44 -0500
committerKingPin <none@none>2008-10-28 08:10:44 -0500
commit3ea64f75812b7cdf81d9bc404ee9f50f16054b6c (patch)
treef94744dca627c05971268a19f5eb381eacfd6653 /src/game/Chat.cpp
parentf724227f2478f8755ad22af9be6e0367d109fdd0 (diff)
[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
Diffstat (limited to 'src/game/Chat.cpp')
-rw-r--r--src/game/Chat.cpp8
1 files changed, 7 insertions, 1 deletions
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 += " ...";
}