diff options
author | p0wer <none@none> | 2009-12-21 21:08:29 -0600 |
---|---|---|
committer | p0wer <none@none> | 2009-12-21 21:08:29 -0600 |
commit | 75904791863494b213c5b8ae2a864910a5d4ca35 (patch) | |
tree | ad36a802e978f42a1730cdb1bb20f9e3271b6aea /src/trinitycore/CliRunnable.cpp | |
parent | cad203e680f1f40585880ef32e210fdc02316ff9 (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/CliRunnable.cpp')
-rw-r--r-- | src/trinitycore/CliRunnable.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/trinitycore/CliRunnable.cpp b/src/trinitycore/CliRunnable.cpp index e325c2ca366..b35af1f1bb5 100644 --- a/src/trinitycore/CliRunnable.cpp +++ b/src/trinitycore/CliRunnable.cpp @@ -236,9 +236,12 @@ bool ChatHandler::HandleAccountOnlineListCommand(const char* /*args*/) ///- Get the username, last IP and GM level of each account // No SQL injection. account is uint32. - // 0 1 2 3 - QueryResult *resultLogin = loginDatabase.PQuery("SELECT username, last_ip, gmlevel, expansion FROM account WHERE id = '%u'",account); - + QueryResult *resultLogin = + loginDatabase.PQuery("SELECT a.username, a.last_ip, aa.gmlevel, a.expansion " + "FROM account a " + "LEFT JOIN account_access aa " + "ON (a.id = aa.id) " + "WHERE a.id = '%u'", account); if(resultLogin) { Field *fieldsLogin = resultLogin->Fetch(); |