mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-30 09:03:47 +00:00
feat(Core/ChatHandler): Add SendErrorMessage helper (#17919)
* feat(Core/Chat): Add SendErrorMessage helper * lost boy
This commit is contained in:
@@ -74,6 +74,23 @@ public:
|
||||
return Acore::StringFormat(GetAcoreString(entry), std::forward<Args>(args)...);
|
||||
}
|
||||
|
||||
void SendErrorMessage(uint32 entry);
|
||||
void SendErrorMessage(std::string_view str, bool escapeCharacters);
|
||||
|
||||
template<typename... Args>
|
||||
void SendErrorMessage(char const* fmt, Args&&... args)
|
||||
{
|
||||
PSendSysMessage(fmt, std::forward<Args>(args)...);
|
||||
SetSentErrorMessage(true);
|
||||
}
|
||||
|
||||
template<typename... Args>
|
||||
void SendErrorMessage(uint32 entry, Args&&... args)
|
||||
{
|
||||
PSendSysMessage(entry, std::forward<Args>(args)...);
|
||||
SetSentErrorMessage(true);
|
||||
}
|
||||
|
||||
bool _ParseCommands(std::string_view text);
|
||||
virtual bool ParseCommands(std::string_view text);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user