[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
This commit is contained in:
megamage
2009-07-20 11:51:20 +08:00
parent e95dd86616
commit 833e4e41ab
7 changed files with 36 additions and 31 deletions

View File

@@ -231,7 +231,7 @@ void WorldSession::HandleWhoOpcode( WorldPacket & recv_data )
uint32 team = _player->GetTeam();
uint32 security = GetSecurity();
bool allowTwoSideWhoList = sWorld.getConfig(CONFIG_ALLOW_TWO_SIDE_WHO_LIST);
bool gmInWhoList = sWorld.getConfig(CONFIG_GM_IN_WHO_LIST);
uint32 gmLevelInWhoList = sWorld.getConfig(CONFIG_GM_LEVEL_IN_WHO_LIST);
WorldPacket data( SMSG_WHO, 50 ); // guess size
data << clientcount; // clientcount place holder
@@ -248,7 +248,7 @@ void WorldSession::HandleWhoOpcode( WorldPacket & recv_data )
continue;
// player can see MODERATOR, GAME MASTER, ADMINISTRATOR only if CONFIG_GM_IN_WHO_LIST
if ((itr->second->GetSession()->GetSecurity() > SEC_PLAYER && !gmInWhoList))
if ((itr->second->GetSession()->GetSecurity() > gmLevelInWhoList))
continue;
}