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.Type == CSmModeEvent::EType::OnPlayerRemoved) {
if (Event.User == Null ) continue; if (Event.User == Null ) continue;
if (!AccountIdsOfPlayers.exists(Event.User.WebServicesUserId)) continue; if (!AccountIdsOfPlayers.exists(Event.User.WebServicesUserId)) continue;
if (IsEliminated(Event.User, Null)) continue;
ThrottleUpdate = True; ThrottleUpdate = True;
UpdateCustomRanking(Event.User, True); UpdateCustomRanking(Event.User, True);
} }