diff --git a/src/Bot/Cmd/ChatHelper.cpp b/src/Bot/Cmd/ChatHelper.cpp index bf288747..fb6002a1 100644 --- a/src/Bot/Cmd/ChatHelper.cpp +++ b/src/Bot/Cmd/ChatHelper.cpp @@ -598,9 +598,9 @@ uint32 ChatHelper::parseSlot(std::string const text) return EQUIPMENT_SLOT_END; } -bool ChatHelper::parseable(std::string const text) +bool ChatHelper::parseableItem(std::string const text) { - return text.find("|H") != std::string::npos || text == "questitem" || text == "ammo" || + return text.find("|Hitem:") != std::string::npos || text == "questitem" || text == "ammo" || substrContainsInMap(text, consumableSubClasses) || substrContainsInMap(text, tradeSubClasses) || substrContainsInMap(text, itemQualities) || substrContainsInMap(text, slots) || substrContainsInMap(text, chats) || diff --git a/src/Bot/Cmd/ChatHelper.h b/src/Bot/Cmd/ChatHelper.h index 562f2307..5069fcb5 100644 --- a/src/Bot/Cmd/ChatHelper.h +++ b/src/Bot/Cmd/ChatHelper.h @@ -66,7 +66,7 @@ public: static uint32 parseSlot(std::string const text); uint32 parseSkill(std::string const text); - static bool parseable(std::string const text); + static bool parseableItem(std::string const text); void eraseAllSubStr(std::string& mainStr, std::string const toErase); diff --git a/src/Bot/Engine/ExternalEventHelper.cpp b/src/Bot/Engine/ExternalEventHelper.cpp index 2f42eee9..3a62fbda 100644 --- a/src/Bot/Engine/ExternalEventHelper.cpp +++ b/src/Bot/Engine/ExternalEventHelper.cpp @@ -30,7 +30,7 @@ bool ExternalEventHelper::ParseChatCommand(std::string const command, Player* ow return true; } - if (!ChatHelper::parseable(command)) + if (!ChatHelper::parseableItem(command)) return false; HandleCommand("c", command, owner);