From e63adf5a299c7629dbe829c557ae9ce18a791df0 Mon Sep 17 00:00:00 2001 From: XTZGZoReX Date: Sun, 5 Apr 2009 00:04:10 +0200 Subject: * 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 --- src/game/WorldSocket.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/game/WorldSocket.cpp') diff --git a/src/game/WorldSocket.cpp b/src/game/WorldSocket.cpp index ca5a233bc64..bb45b2a968e 100644 --- a/src/game/WorldSocket.cpp +++ b/src/game/WorldSocket.cpp @@ -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 ()); -- cgit v1.2.3