aboutsummaryrefslogtreecommitdiff
path: root/src/trinitycore/RASocket.cpp
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2009-12-25 11:43:39 +0100
committern0n4m3 <none@none>2009-12-25 11:43:39 +0100
commit531945f8ad358b1c6c023cc87da7b0ef78352b27 (patch)
treeeb34cc18b2dc77f4b1324c4fce56715af574dab8 /src/trinitycore/RASocket.cpp
parent2e1c4882416c9f88d3c0e6421dcf86499dd8ce90 (diff)
Fixed RA auth. by toshik
--HG-- branch : trunk
Diffstat (limited to 'src/trinitycore/RASocket.cpp')
-rw-r--r--src/trinitycore/RASocket.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/trinitycore/RASocket.cpp b/src/trinitycore/RASocket.cpp
index 2727e0bd242..ce2388d8037 100644
--- a/src/trinitycore/RASocket.cpp
+++ b/src/trinitycore/RASocket.cpp
@@ -175,13 +175,15 @@ void RASocket::OnRead()
Sendf("-Not enough privileges.\r\n");
sLog.outRemote("User %s has no privilege.\n",szLogin.c_str());
if(bSecure)SetCloseAndDelete();
- } else if(fields[2].GetUInt32() != '-1')
+ }
+ else if(fields[2].GetInt32() != -1)
{
///- if RealmID isn't -1, deny access
Sendf("-Not enough privileges.\r\n");
sLog.outRemote("User %s has to be assigned on all realms (with RealmID = '-1').\n",szLogin.c_str());
if(bSecure)SetCloseAndDelete();
- } else
+ }
+ else
{
stage=LG;
}