From f7dba226fea3481236032eae69cf2bff484f0234 Mon Sep 17 00:00:00 2001 From: Shauren Date: Mon, 26 Oct 2015 17:06:30 +0100 Subject: Core/PacketIO: Started work on updating last bunch of packets still using old ObjectGuid::operator[] to remove it entirely --- src/server/game/Handlers/ChatHandler.cpp | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) (limited to 'src/server/game/Handlers/ChatHandler.cpp') diff --git a/src/server/game/Handlers/ChatHandler.cpp b/src/server/game/Handlers/ChatHandler.cpp index c200c0851b2..88ad8358484 100644 --- a/src/server/game/Handlers/ChatHandler.cpp +++ b/src/server/game/Handlers/ChatHandler.cpp @@ -635,31 +635,9 @@ void WorldSession::HandleTextEmoteOpcode(WorldPackets::Chat::CTextEmote& packet) creature->AI()->ReceiveEmote(_player, packet.SoundIndex); } -void WorldSession::HandleChatIgnoredOpcode(WorldPacket& recvData) +void WorldSession::HandleChatIgnoredOpcode(WorldPackets::Chat::ChatReportIgnored& chatReportIgnored) { - ObjectGuid guid; - uint8 unk; - - recvData >> unk; // probably related to spam reporting - guid[5] = recvData.ReadBit(); - guid[2] = recvData.ReadBit(); - guid[6] = recvData.ReadBit(); - guid[4] = recvData.ReadBit(); - guid[7] = recvData.ReadBit(); - guid[0] = recvData.ReadBit(); - guid[1] = recvData.ReadBit(); - guid[3] = recvData.ReadBit(); - - recvData.ReadByteSeq(guid[0]); - recvData.ReadByteSeq(guid[6]); - recvData.ReadByteSeq(guid[5]); - recvData.ReadByteSeq(guid[1]); - recvData.ReadByteSeq(guid[4]); - recvData.ReadByteSeq(guid[3]); - recvData.ReadByteSeq(guid[7]); - recvData.ReadByteSeq(guid[2]); - - Player* player = ObjectAccessor::FindConnectedPlayer(guid); + Player* player = ObjectAccessor::FindConnectedPlayer(chatReportIgnored.IgnoredGUID); if (!player || !player->GetSession()) return; -- cgit v1.2.3