mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 01:59:09 +00:00
feat(Core/DB): add support range loop for mysql result (#13355)
This commit is contained in:
@@ -195,13 +195,14 @@ void AuthSession::CheckIpCallback(PreparedQueryResult result)
|
||||
{
|
||||
bool banned = false;
|
||||
|
||||
do
|
||||
for (auto const& fields : *result)
|
||||
{
|
||||
Field* fields = result->Fetch();
|
||||
if (fields[0].Get<uint64>() != 0)
|
||||
{
|
||||
banned = true;
|
||||
|
||||
} while (result->NextRow());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (banned)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user