[9916] Fixed .account onlinelist work.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Darkruler 2010-05-17 02:02:21 +04:00 committed by VladimirMangos
parent ce761f4925
commit 0b7f090a37
2 changed files with 2 additions and 2 deletions

View file

@ -483,7 +483,7 @@ bool ChatHandler::HandleAccountOnlineListCommand(const char* args)
///- Get the list of accounts ID logged to the realm ///- Get the list of accounts ID logged to the realm
// 0 1 2 3 4 // 0 1 2 3 4
QueryResult *result = loginDatabase.PQuery("SELECT id, username, last_ip, gmlevel, expansion FROM account WHERE realm = %u", realmID); QueryResult *result = loginDatabase.PQuery("SELECT id, username, last_ip, gmlevel, expansion FROM account WHERE active_realm_id = %u", realmID);
return ShowAccountListHelper(result,&limit); return ShowAccountListHelper(result,&limit);
} }

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "9915" #define REVISION_NR "9916"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__