Pylon: Fix incorrect return value in GetBannedList

GetBannedList was returning true even when no players were pushed to the banlist causing excessive thread creation in the bulk check system.
This commit is contained in:
O-Robotic 2024-11-10 17:00:23 +00:00
parent 0806b10f79
commit cce4429606

View File

@ -287,9 +287,13 @@ bool CPylon::GetBannedList(const CBanSystem::BannedList_t& inBannedVec, CBanSyst
CBanSystem::Banned_t banned(reason ? reason : "#DISCONNECT_BANNED", nuc);
(*outBannedVec)->AddToTail(banned);
}
}
return true;
return true;
}
else
{
return false;
}
}
//-----------------------------------------------------------------------------