Core/Battle.net: Changed HandleAuthSession to work with battle.net formatted account names

This commit is contained in:
Shauren committed 2014-05-12 17:57:35 +02:00
1 parent daa7fd0079
commit a842f2ef11
3 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -856,7 +856,7 @@ int WorldSocket::HandleAuthSession(WorldPacket& recvPacket)
// Get the account information from the realmd database
// 0 1 2 3 4 5 6 7 8
// SELECT id, sessionkey, last_ip, locked, expansion, mutetime, locale, recruiter, os FROM account WHERE username = ?
PreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_SEL_ACCOUNT_INFO_BY_NAME);
PreparedStatement* stmt = LoginDatabase.GetPreparedStatement(account.find('#') == std::string::npos ? LOGIN_SEL_ACCOUNT_INFO_BY_NAME : LOGIN_SEL_ACCOUNT_INFO_BY_BNET);
stmt->setString(0, account);