aboutsummaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2009-04-05 00:04:10 +0200
committerXTZGZoReX <none@none>2009-04-05 00:04:10 +0200
commite63adf5a299c7629dbe829c557ae9ce18a791df0 (patch)
tree9d0803e7e0ac53809918faecf219958a29e34f45 /src/game
parentf744c0907514a48425df8c96bffaadbe54ac3e79 (diff)
* 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
Diffstat (limited to 'src/game')
-rw-r--r--src/game/WorldSocket.cpp2
1 files changed, 2 insertions, 0 deletions
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 ());