[8846] corrections for my last commit

thx to vladimir and apoc :)
This commit is contained in:
balrok 2009-11-20 13:16:22 +01:00
parent 1d362eace4
commit 56d694b5fb
8 changed files with 38 additions and 39 deletions

View file

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