diff options
author | KingPin <none@none> | 2008-10-20 14:11:58 -0500 |
---|---|---|
committer | KingPin <none@none> | 2008-10-20 14:11:58 -0500 |
commit | 9664e39fa4e1d33eaa30cbbe87a4b7dbccb5ead0 (patch) | |
tree | bc981128afcf0553536f1c38c535c87ce5dcc956 /src/game/Chat.cpp | |
parent | 717cfa01f0a10f5b1482fded2efdbb598145a2a2 (diff) |
[svn] * Compile fixes from previous revs.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Chat.cpp')
-rw-r--r-- | src/game/Chat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp index 1ade86026fa..ff16e2d6e18 100644 --- a/src/game/Chat.cpp +++ b/src/game/Chat.cpp @@ -633,7 +633,7 @@ bool ChatHandler::ExecuteCommandInTable(ChatCommand *table, const char* text, st for(uint32 i = 0; table[i].Name != NULL; i++) { - if( *subcmd && !hasStringAbbr(table[i].Name, subcmd)) + if( !hasStringAbbr(table[i].Name, cmd.c_str()) ) continue; // select subcommand from child commands list @@ -721,7 +721,7 @@ bool ChatHandler::ShowHelpForSubCommands(ChatCommand *table, char const* cmd, ch if(m_session->GetSecurity() < table[i].SecurityLevel) continue; - if( !hasStringAbbr(table[i].Name, subcmd) ) + if( *subcmd && !hasStringAbbr(table[i].Name, subcmd)) continue; (list += "\n ") += table[i].Name; |