diff options
author | megamage <none@none> | 2009-07-20 11:51:20 +0800 |
---|---|---|
committer | megamage <none@none> | 2009-07-20 11:51:20 +0800 |
commit | 833e4e41ab54bec5a8f2b879371fdf1d47168723 (patch) | |
tree | 00b8314a2ab5afcd2e23ccb7202c258a24ac5849 /src/game/Level0.cpp | |
parent | e95dd866161ab211cb5690dc3eed9a949ea3a982 (diff) |
[8185] Allow set visible gm level for in gm list and in who list checks. Author: VladimirMangos
* GM.InGMList replaced by GM.InGMList.Level with default value 3 (visible any gm levels)
* GM.InWhoList replaced by GM.InWhoList.Level with default value 3 (visible any gm levels)
Update mangosd.conf if used non default value for old GM.InGMList and GM.InWhoList
--HG--
branch : trunk
Diffstat (limited to 'src/game/Level0.cpp')
-rw-r--r-- | src/game/Level0.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/game/Level0.cpp b/src/game/Level0.cpp index f5fd5ec2626..ec3198b4213 100644 --- a/src/game/Level0.cpp +++ b/src/game/Level0.cpp @@ -163,9 +163,8 @@ bool ChatHandler::HandleGMListIngameCommand(const char* /*args*/) HashMapHolder<Player>::MapType::const_iterator itr = m.begin(); for(; itr != m.end(); ++itr) { - if (itr->second->GetSession()->GetSecurity() > SEC_PLAYER && - (itr->second->isGameMaster() || sWorld.getConfig(CONFIG_GM_IN_GM_LIST)) && - (!m_session || itr->second->IsVisibleGloballyFor(m_session->GetPlayer())) ) + if ((itr->second->isGameMaster() || itr->second->GetSession()->GetSecurity() <= sWorld.getConfig(CONFIG_GM_LEVEL_IN_GM_LIST)) && + (!m_session || itr->second->IsVisibleGloballyFor(m_session->GetPlayer()))) { if(first) { |