mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 22:56:24 +00:00
fix(Core/WorldSession): incorrect fmt formatting (#20926)
This commit is contained in:
@@ -348,8 +348,22 @@ public:
|
||||
void SendPacket(WorldPacket const* packet);
|
||||
void SendPetNameInvalid(uint32 error, std::string const& name, DeclinedName* declinedName);
|
||||
void SendPartyResult(PartyOperation operation, std::string const& member, PartyResult res, uint32 val = 0);
|
||||
void SendAreaTriggerMessage(const char* Text, ...) ATTR_PRINTF(2, 3);
|
||||
void SendAreaTriggerMessage(uint32 entry, ...);
|
||||
|
||||
void SendAreaTriggerMessage(std::string_view str);
|
||||
|
||||
template<typename... Args>
|
||||
void SendAreaTriggerMessage(char const* fmt, Args&&... args)
|
||||
{
|
||||
if (!m_playerLoading)
|
||||
SendAreaTriggerMessage(Acore::StringFormat(fmt, std::forward<Args>(args)...));
|
||||
}
|
||||
template<typename... Args>
|
||||
void SendAreaTriggerMessage(uint32 strId, Args&&... args)
|
||||
{
|
||||
if (!m_playerLoading)
|
||||
SendAreaTriggerMessage(Acore::StringFormat(GetAcoreString(strId), std::forward<Args>(args)...));
|
||||
}
|
||||
|
||||
void SendSetPhaseShift(uint32 phaseShift);
|
||||
void SendQueryTimeResponse();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user