aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Handlers/QueryHandler.cpp
diff options
context:
space:
mode:
authorDDuarte <dnpd.dd@gmail.com>2014-11-10 05:53:05 +0000
committerDDuarte <dnpd.dd@gmail.com>2014-11-10 05:53:05 +0000
commitec7923c2e6f7778d82e8102d38cd54e0827fb840 (patch)
tree9fe805b797f9e1d899e217f5b88c3e7d9dfe81c9 /src/server/game/Handlers/QueryHandler.cpp
parent4b0a97af92b114e37c5eab8e77fec62a8f383247 (diff)
Core/Packets: CMSG_NAME_QUERY (QueryPlayerName) handler
Diffstat (limited to 'src/server/game/Handlers/QueryHandler.cpp')
-rw-r--r--src/server/game/Handlers/QueryHandler.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/server/game/Handlers/QueryHandler.cpp b/src/server/game/Handlers/QueryHandler.cpp
index 7ee9b7db982..8a2cedab4d7 100644
--- a/src/server/game/Handlers/QueryHandler.cpp
+++ b/src/server/game/Handlers/QueryHandler.cpp
@@ -64,15 +64,9 @@ void WorldSession::SendNameQueryOpcode(ObjectGuid guid)
SendPacket(&data);
}
-void WorldSession::HandleNameQueryOpcode(WorldPacket& recvData)
+void WorldSession::HandleNameQueryOpcode(WorldPackets::Character::QueryPlayerName& queryPlayerName)
{
- ObjectGuid guid;
- recvData >> guid;
-
- // This is disable by default to prevent lots of console spam
- // TC_LOG_INFO("network", "HandleNameQueryOpcode %u", guid);
-
- SendNameQueryOpcode(guid);
+ SendNameQueryOpcode(queryPlayerName.Player);
}
void WorldSession::HandleQueryTimeOpcode(WorldPacket & /*recvData*/)