aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Handlers/ChatHandler.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2015-10-26 17:06:30 +0100
committerShauren <shauren.trinity@gmail.com>2015-10-26 17:06:30 +0100
commitf7dba226fea3481236032eae69cf2bff484f0234 (patch)
treec5c05f906e9fbea9acbe5fbce97dcc28b7827fad /src/server/game/Handlers/ChatHandler.cpp
parentc9868f8dde7af861aeff26537f65c5f8c471e9a6 (diff)
Core/PacketIO: Started work on updating last bunch of packets still using old ObjectGuid::operator[] to remove it entirely
Diffstat (limited to 'src/server/game/Handlers/ChatHandler.cpp')
-rw-r--r--src/server/game/Handlers/ChatHandler.cpp26
1 files changed, 2 insertions, 24 deletions
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;