mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Packets: Added most of the chat packets
This commit is contained in:
@@ -634,6 +634,7 @@ void ChatHandler::BuildChatPacket(WorldPackets::Chat::Chat* packet, ChatMsg chat
|
||||
uint32 achievementId /*= 0*/, std::string const& channelName /*= ""*/, LocaleConstant locale /*= DEFAULT_LOCALE*/, std::string const& addonPrefix /*= ""*/)
|
||||
{
|
||||
// Clear everything because same packet can be used multiple times
|
||||
packet->Reset();
|
||||
packet->SenderGUID.Clear();
|
||||
packet->SenderAccountGUID.Clear();
|
||||
packet->SenderGuildGUID.Clear();
|
||||
@@ -655,7 +656,7 @@ void ChatHandler::BuildChatPacket(WorldPackets::Chat::Chat* packet, ChatMsg chat
|
||||
|
||||
if (Player const* playerSender = sender->ToPlayer())
|
||||
{
|
||||
packet->SenderAccountGUID = ObjectGuid::Create<HighGuid::WowAccount>(playerSender->GetSession()->GetAccountId());
|
||||
packet->SenderAccountGUID = playerSender->GetSession()->GetAccountGUID();
|
||||
packet->ChatFlags = playerSender->GetChatFlags();
|
||||
|
||||
if (Guild const* guild = playerSender->GetGuild())
|
||||
|
||||
Reference in New Issue
Block a user