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
1 changed files with 1 additions and 0 deletions

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);
}