mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/ChatCommands: Check whether a passed numeric enum value is valid (#25285)
This commit is contained in:
committed by
GitHub
parent
9c9e8c7d58
commit
4286e7aa02
@@ -1140,13 +1140,8 @@ public:
|
||||
if (Unit* unit = handler->getSelectedUnit())
|
||||
unit->HandleEmoteCommand(emote);
|
||||
|
||||
try
|
||||
{
|
||||
handler->PSendSysMessage("Playing emote %s", EnumUtils::ToConstant(emote));
|
||||
} catch (...)
|
||||
{
|
||||
handler->PSendSysMessage("Playing unknown emote");
|
||||
}
|
||||
handler->PSendSysMessage("Playing emote %s", EnumUtils::ToConstant(emote));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user