* Allow use security > 3 in realmd.account.gmlevel field. This will fix issue where gmlevels above 3 did not work.

* Note: Have in mind that gmlevels above 3 can have "unexpected" effects; players with, for example, gmlevel 4 _may_ be able to execute console-only commands from ingame.

--HG--
branch : trunk
This commit is contained in:
XTZGZoReX
2009-04-05 00:04:10 +02:00
parent f744c09075
commit e63adf5a29

View File

@@ -903,8 +903,10 @@ int WorldSocket::HandleAuthSession (WorldPacket& recvPacket)
id = fields[0].GetUInt32 ();
security = fields[1].GetUInt16 ();
/*
if(security > SEC_ADMINISTRATOR) // prevent invalid security settings in DB
security = SEC_ADMINISTRATOR;
*/
K.SetHexStr (fields[2].GetString ());