From 531945f8ad358b1c6c023cc87da7b0ef78352b27 Mon Sep 17 00:00:00 2001 From: n0n4m3 Date: Fri, 25 Dec 2009 11:43:39 +0100 Subject: [PATCH] Fixed RA auth. by toshik --HG-- branch : trunk --- src/trinitycore/RASocket.cpp | 6 ++++-- 1 file 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; }