aboutsummaryrefslogtreecommitdiff
path: root/src/trinitycore
diff options
context:
space:
mode:
authorp0wer <none@none>2009-12-22 21:10:45 -0600
committerp0wer <none@none>2009-12-22 21:10:45 -0600
commit1df511c5ddea774f9509fbbbf3e36f77b9385bde (patch)
tree16cb3b917eed87128bf49ef6c8b048518751671e /src/trinitycore
parent6cd46ebd4ac720ac174f87db83ebee95e9035441 (diff)
* Fix a silly mistake by Sundark.
--HG-- branch : trunk
Diffstat (limited to 'src/trinitycore')
-rw-r--r--src/trinitycore/RASocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trinitycore/RASocket.cpp b/src/trinitycore/RASocket.cpp
index 055cfebada6..a464a83702c 100644
--- a/src/trinitycore/RASocket.cpp
+++ b/src/trinitycore/RASocket.cpp
@@ -170,7 +170,7 @@ void RASocket::OnRead()
//szPass=fields[0].GetString();
///- if gmlevel is too low, deny access
- if(fields[1].GetUInt32()<iMinLevel && fields[1].GetUInt32() != NULL))
+ if(fields[1].GetUInt32()<iMinLevel || fields[1].GetUInt32() == NULL))
{
Sendf("-Not enough privileges.\r\n");
sLog.outRemote("User %s has no privilege.\n",szLogin.c_str());