Prevent to send a second chat message when an eliminated player leave the server

This commit is contained in:
Beu 2023-07-13 09:59:26 +02:00
parent 2741de908f
commit 6302012349

View File

@ -374,6 +374,7 @@ foreach (Event in PendingEvents) {
if (Event.Type == CSmModeEvent::EType::OnPlayerRemoved) {
if (Event.User == Null ) continue;
if (!AccountIdsOfPlayers.exists(Event.User.WebServicesUserId)) continue;
if (IsEliminated(Event.User, Null)) continue;
ThrottleUpdate = True;
UpdateCustomRanking(Event.User, True);
}