aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/game/DungeonFinding/LFGMgr.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/server/game/DungeonFinding/LFGMgr.cpp b/src/server/game/DungeonFinding/LFGMgr.cpp
index 45e5640c3d5..7cc05d27433 100644
--- a/src/server/game/DungeonFinding/LFGMgr.cpp
+++ b/src/server/game/DungeonFinding/LFGMgr.cpp
@@ -700,8 +700,9 @@ void LFGMgr::Join(Player* plr)
/// <param name="Group*">Group (could be NULL)</param>
void LFGMgr::Leave(Player* plr, Group* grp /* = NULL*/)
{
- if (plr && !plr->GetLfgUpdate())
+ if ((plr && !plr->GetLfgUpdate()) || !sWorld.getBoolConfig(CONFIG_DUNGEON_FINDER_ENABLE))
return;
+
uint64 guid = grp ? grp->GetGUID() : plr ? plr->GetGUID() : 0;
sLog.outError("DEBUG:LFGMgr::Leave: [" UI64FMTD "]", guid);
@@ -763,6 +764,9 @@ void LFGMgr::Leave(Player* plr, Group* grp /* = NULL*/)
/// <param name="Group*">Group than needs new players</param>
void LFGMgr::OfferContinue(Group* grp)
{
+ if (!sWorld.getBoolConfig(CONFIG_DUNGEON_FINDER_ENABLE))
+ return;
+
ASSERT(grp);
if (Player* leader = sObjectMgr.GetPlayer(grp->GetLeaderGUID()))
leader->GetSession()->SendLfgOfferContinue(grp->GetLfgDungeonEntry(false));
@@ -1832,7 +1836,7 @@ void LFGMgr::TeleportPlayer(Player* plr, bool out)
void LFGMgr::RewardDungeonDoneFor(const uint32 dungeonId, Player* player)
{
Group* group = player->GetGroup();
- if (!group || !group->isLFGGroup())
+ if ((!group || !group->isLFGGroup()) || !sWorld.getBoolConfig(CONFIG_DUNGEON_FINDER_ENABLE))
return;
// Mark dungeon as finished