From 80b7b3c1fc2186d6e4c3f2105fea3928681625d6 Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 20 Jul 2009 11:55:44 +0800 Subject: [PATCH] [8189] Fixed: not include player in GM online list output. Author: VladimirMangos --HG-- branch : trunk --- src/game/Level0.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/Level0.cpp b/src/game/Level0.cpp index ec3198b421..4a33bf07b7 100644 --- a/src/game/Level0.cpp +++ b/src/game/Level0.cpp @@ -163,7 +163,8 @@ bool ChatHandler::HandleGMListIngameCommand(const char* /*args*/) HashMapHolder::MapType::const_iterator itr = m.begin(); for(; itr != m.end(); ++itr) { - if ((itr->second->isGameMaster() || itr->second->GetSession()->GetSecurity() <= sWorld.getConfig(CONFIG_GM_LEVEL_IN_GM_LIST)) && + AccountTypes itr_sec = itr->second->GetSession()->GetSecurity(); + if ((itr->second->isGameMaster() || itr_sec > SEC_PLAYER && itr_sec <= sWorld.getConfig(CONFIG_GM_LEVEL_IN_GM_LIST)) && (!m_session || itr->second->IsVisibleGloballyFor(m_session->GetPlayer()))) { if(first)