diff options
author | Yehonal <yehonal.azeroth@gmail.com> | 2016-08-21 13:51:20 +0200 |
---|---|---|
committer | ShinDarth <borzifrancesco@gmail.com> | 2016-08-21 13:51:20 +0200 |
commit | 1e5af6d3bec7ab99c1e79165ef19e9bf781e6c46 (patch) | |
tree | 699108045ed39fc2a3780f1537cb516c95cdb8b2 /src | |
parent | d66d24d597ebeff363b3e7b3ee00b2222b4a7b47 (diff) |
Core/Chat: fixed commands
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Chat/Chat.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/Chat/Chat.cpp b/src/game/Chat/Chat.cpp index 6ad71b0cdb..72f68994df 100644 --- a/src/game/Chat/Chat.cpp +++ b/src/game/Chat/Chat.cpp @@ -246,6 +246,10 @@ bool ChatHandler::ExecuteCommandInTable(std::vector<ChatCommand> const& table, c for (uint32 i = 0; i < table.size(); ++i) { + // for data fill use full explicit command names + if (table[i].Name == nullptr || table[i].Name != cmd) + continue; + if (!hasStringAbbr(table[i].Name, cmd.c_str())) continue; |