From b5172ea7d4d1045600644123648a81c7bda4055a Mon Sep 17 00:00:00 2001 From: Spp Date: Tue, 14 Sep 2010 20:09:34 +0200 Subject: [PATCH] Core/Dungeon Finder: LfgUpdatePlayer and LfgUpdateParty opcodes will be sent only when LfgUpdate is active --HG-- branch : trunk --- .../game/Server/Protocol/Handlers/LFGHandler.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/server/game/Server/Protocol/Handlers/LFGHandler.cpp b/src/server/game/Server/Protocol/Handlers/LFGHandler.cpp index 5e5317e83c..5e88c8dd66 100644 --- a/src/server/game/Server/Protocol/Handlers/LFGHandler.cpp +++ b/src/server/game/Server/Protocol/Handlers/LFGHandler.cpp @@ -286,6 +286,12 @@ void WorldSession::HandleLfrLeaveOpcode(WorldPacket &recv_data) void WorldSession::SendLfgUpdatePlayer(uint8 updateType) { + if (!GetPlayer()->GetLfgUpdate()) + { + sLog.outDebug("SMSG_LFG_UPDATE_PLAYER [" UI64FMTD "] updatetype: %u not sent! player flag: false", GetPlayer()->GetGUID(), updateType); + return; + } + bool queued = false; bool extrainfo = false; @@ -326,6 +332,12 @@ void WorldSession::SendLfgUpdatePlayer(uint8 updateType) void WorldSession::SendLfgUpdateParty(uint8 updateType) { + if (!GetPlayer()->GetLfgUpdate()) + { + sLog.outDebug("SMSG_LFG_UPDATE_PARTY [" UI64FMTD "] updatetype: %u not sent! player flag: false", GetPlayer()->GetGUID(), updateType); + return; + } + bool join = false; bool extrainfo = false; bool queued = false;