aboutsummaryrefslogtreecommitdiff
path: root/src/game/Chat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Chat.cpp')
-rw-r--r--src/game/Chat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp
index b8950d5da82..2f5eb5d71fb 100644
--- a/src/game/Chat.cpp
+++ b/src/game/Chat.cpp
@@ -626,7 +626,7 @@ bool ChatHandler::ExecuteCommandInTable(ChatCommand *table, const char* text, st
for(uint32 i = 0; table[i].Name != NULL; i++)
{
- if( !hasStringAbbr(table[i].Name, cmd.c_str()) )
+ if( *subcmd && !hasStringAbbr(table[i].Name, subcmd))
continue;
// select subcommand from child commands list