From 1e5af6d3bec7ab99c1e79165ef19e9bf781e6c46 Mon Sep 17 00:00:00 2001 From: Yehonal Date: Sun, 21 Aug 2016 13:51:20 +0200 Subject: [PATCH] Core/Chat: fixed commands --- src/game/Chat/Chat.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/Chat/Chat.cpp b/src/game/Chat/Chat.cpp index 6ad71b0cd..72f68994d 100644 --- a/src/game/Chat/Chat.cpp +++ b/src/game/Chat/Chat.cpp @@ -246,6 +246,10 @@ bool ChatHandler::ExecuteCommandInTable(std::vector 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;