aboutsummaryrefslogtreecommitdiff
path: root/src/game/WorldSession.cpp
diff options
context:
space:
mode:
authorSpp <spp@jorge.gr>2010-05-31 20:25:21 +0200
committerSpp <spp@jorge.gr>2010-05-31 20:25:21 +0200
commit824b1303cedd1ce9fed7435982b08e96798f1e70 (patch)
tree54fd62d176156a2befe1e596b94833523137c0e7 /src/game/WorldSession.cpp
parent248782448c91aaa15a918d117a92f4ceaae0d77c (diff)
Dungeon Finder:
- Add Rolechecks - Can Join and Leave queue * No Find group implementation, it just adds u to the queue. * Still missing some join queue restrictions. --HG-- branch : trunk
Diffstat (limited to 'src/game/WorldSession.cpp')
-rw-r--r--src/game/WorldSession.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/WorldSession.cpp b/src/game/WorldSession.cpp
index ea78eb22fb8..bc737717840 100644
--- a/src/game/WorldSession.cpp
+++ b/src/game/WorldSession.cpp
@@ -42,6 +42,7 @@
#include "SocialMgr.h"
#include "zlib/zlib.h"
#include "ScriptMgr.h"
+#include "LFGMgr.h"
/// WorldSession constructor
WorldSession::WorldSession(uint32 id, WorldSocket *sock, AccountTypes sec, uint8 expansion, time_t mute_time, LocaleConstant locale) :
@@ -314,6 +315,11 @@ void WorldSession::LogoutPlayer(bool Save)
if (_player)
{
+ sLFGMgr.Leave(_player);
+ GetPlayer()->GetSession()->SendLfgUpdateParty(LFG_UPDATETYPE_REMOVED_FROM_QUEUE);
+ GetPlayer()->GetSession()->SendLfgUpdatePlayer(LFG_UPDATETYPE_REMOVED_FROM_QUEUE);
+ GetPlayer()->GetSession()->SendLfgUpdateSearch(false);
+
if (uint64 lguid = GetPlayer()->GetLootGUID())
DoLootRelease(lguid);