Replace switch with more proper way of checking allowSecurityLevel, and a few other minor changes.
--HG-- branch : trunk
This commit is contained in:
1 parent
2345c5ca8d
commit
055acc4b8a
3 files changed
+11
-34
No files matched your search
@@ -862,8 +862,9 @@ int WorldSocket::HandleAuthSession (WorldPacket& recvPacket)
|
||||
}
|
||||
|
||||
// Check locked state for server
|
||||
sWorld.UpdateAllowedSecurity();
|
||||
AccountTypes allowedAccountType = sWorld.GetPlayerSecurityLimit ();
|
||||
|
||||
sLog.outDebug("Allowed Level: %u Player Level %u", allowedAccountType, AccountTypes(security));
|
||||
if (allowedAccountType > SEC_PLAYER && AccountTypes(security) < allowedAccountType)
|
||||
{
|
||||
WorldPacket Packet (SMSG_AUTH_RESPONSE, 1);
|
||||
|
||||
Reference in new issue
Block a user