Core/PacketIO: Updated packet structures to 9.2.0

This commit is contained in:
Shauren
2022-02-24 23:16:55 +01:00
parent f96c8cc39b
commit 9f30afe352
54 changed files with 1406 additions and 1067 deletions

View File

@@ -32,15 +32,13 @@ void WorldSession::HandleGuildQueryOpcode(WorldPackets::Guild::QueryGuildInfo& q
GetPlayerInfo().c_str(), query.GuildGuid.ToString().c_str(), query.PlayerGuid.ToString().c_str());
if (Guild* guild = sGuildMgr->GetGuildByGuid(query.GuildGuid))
if (guild->IsMember(query.PlayerGuid))
{
guild->SendQueryResponse(this, query.PlayerGuid);
return;
}
{
guild->SendQueryResponse(this);
return;
}
WorldPackets::Guild::QueryGuildInfoResponse response;
response.GuildGuid = query.GuildGuid;
response.PlayerGuid = query.PlayerGuid;
SendPacket(response.Write());
TC_LOG_DEBUG("guild", "SMSG_GUILD_QUERY_RESPONSE [%s]", GetPlayerInfo().c_str());