Core/Packets: CMSG_NAME_QUERY (QueryPlayerName) handler

This commit is contained in:
DDuarte
2014-11-10 05:53:05 +00:00
parent 4b0a97af92
commit ec7923c2e6
6 changed files with 38 additions and 12 deletions

View File

@@ -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*/)