diff options
| author | Treeston <treeston.mmoc@gmail.com> | 2020-09-12 19:42:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-12 19:42:10 +0200 |
| commit | 75f9e7396e35360f3016cc0cb21e72e20f5d96d5 (patch) | |
| tree | e738b70d54516717d2c784117fbd2b0134412ac0 /src/server/scripts/Commands | |
| parent | 59be657ca267667b3cbeb1f34d47df0382e97f53 (diff) | |
[3.3.5] Core/ChatCommands: Show error messages from argument parsers (PR #25443)
Diffstat (limited to 'src/server/scripts/Commands')
| -rw-r--r-- | src/server/scripts/Commands/cs_gobject.cpp | 4 | ||||
| -rw-r--r-- | src/server/scripts/Commands/cs_npc.cpp | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/server/scripts/Commands/cs_gobject.cpp b/src/server/scripts/Commands/cs_gobject.cpp index 87508cb1f69..0dce1f2ede3 100644 --- a/src/server/scripts/Commands/cs_gobject.cpp +++ b/src/server/scripts/Commands/cs_gobject.cpp @@ -40,8 +40,6 @@ EndScriptData */ #include "PoolMgr.h" #include "RBAC.h" #include "WorldSession.h" -#include <boost/core/demangle.hpp> -#include <typeinfo> using namespace Trinity::ChatCommands; @@ -587,7 +585,7 @@ public: handler->PSendSysMessage(LANG_GOINFO_SIZE, gameObjectInfo->size); handler->PSendSysMessage(LANG_OBJECTINFO_AIINFO, gameObjectInfo->AIName.c_str(), sObjectMgr->GetScriptName(gameObjectInfo->ScriptId).c_str()); if (GameObjectAI const* ai = thisGO ? thisGO->AI() : nullptr) - handler->PSendSysMessage(LANG_OBJECTINFO_AITYPE, boost::core::demangle(typeid(*ai).name()).c_str()); + handler->PSendSysMessage(LANG_OBJECTINFO_AITYPE, GetTypeName(*ai).c_str()); if (GameObjectDisplayInfoEntry const* modelInfo = sGameObjectDisplayInfoStore.LookupEntry(displayId)) handler->PSendSysMessage(LANG_GOINFO_MODEL, modelInfo->GeoBoxMax.X, modelInfo->GeoBoxMax.Y, modelInfo->GeoBoxMax.Z, modelInfo->GeoBoxMin.X, modelInfo->GeoBoxMin.Y, modelInfo->GeoBoxMin.Z); diff --git a/src/server/scripts/Commands/cs_npc.cpp b/src/server/scripts/Commands/cs_npc.cpp index 235d20cebf2..bb6b70c1917 100644 --- a/src/server/scripts/Commands/cs_npc.cpp +++ b/src/server/scripts/Commands/cs_npc.cpp @@ -43,8 +43,6 @@ EndScriptData */ #include "Transport.h" #include "World.h" #include "WorldSession.h" -#include <boost/core/demangle.hpp> -#include <typeinfo> using namespace Trinity::ChatCommands; using CreatureSpawnId = Variant<Hyperlink<creature>, ObjectGuid::LowType>; @@ -522,7 +520,7 @@ public: handler->PSendSysMessage(LANG_OBJECTINFO_AIINFO, target->GetAIName().c_str(), target->GetScriptName().c_str()); handler->PSendSysMessage(LANG_NPCINFO_REACTSTATE, DescribeReactState(target->GetReactState())); if (CreatureAI const* ai = target->AI()) - handler->PSendSysMessage(LANG_OBJECTINFO_AITYPE, boost::core::demangle(typeid(*ai).name()).c_str()); + handler->PSendSysMessage(LANG_OBJECTINFO_AITYPE, GetTypeName(*ai).c_str()); handler->PSendSysMessage(LANG_NPCINFO_FLAGS_EXTRA, cInfo->flags_extra); for (CreatureFlagsExtra flag : EnumUtils::Iterate<CreatureFlagsExtra>()) if (cInfo->flags_extra & flag) |
