aboutsummaryrefslogtreecommitdiff
path: root/src/trinitycore/RASocket.cpp
diff options
context:
space:
mode:
authorp0wer <none@none>2009-12-21 21:08:29 -0600
committerp0wer <none@none>2009-12-21 21:08:29 -0600
commit75904791863494b213c5b8ae2a864910a5d4ca35 (patch)
treead36a802e978f42a1730cdb1bb20f9e3271b6aea /src/trinitycore/RASocket.cpp
parentcad203e680f1f40585880ef32e210fdc02316ff9 (diff)
* Add support for different gmlevel's for different realms.
* * Using the value -1 will add the same value for all realms. * Make sure to apply the updates. * Information regarding this patch will be posted on the database forums soon. * * Thanks to Sundark and the Ilixiuemu team(for original patch) --HG-- branch : trunk
Diffstat (limited to 'src/trinitycore/RASocket.cpp')
-rw-r--r--src/trinitycore/RASocket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trinitycore/RASocket.cpp b/src/trinitycore/RASocket.cpp
index f5d968ef102..15043bde3ef 100644
--- a/src/trinitycore/RASocket.cpp
+++ b/src/trinitycore/RASocket.cpp
@@ -145,7 +145,7 @@ void RASocket::OnRead()
{
szLogin=&buff[5];
- ///- Get the gmlevel and password from the account table
+ ///- Get the password from the account table
std::string login = szLogin;
///- Convert Account name to Upper Format
@@ -154,7 +154,7 @@ void RASocket::OnRead()
///- Escape the Login to allow quotes in names
loginDatabase.escape_string(login);
- QueryResult* result = loginDatabase.PQuery("SELECT gmlevel FROM account WHERE username = '%s'",login.c_str());
+ QueryResult* result = loginDatabase.PQuery("SELECT aa.gmlevel FROM account_access aa, account a WHERE a.username = '%s' AND aa.id = a.id",login.c_str());
///- If the user is not found, deny access
if(!result)