From 17dd04857f825c6f9249ba792d7e5b01f674303d Mon Sep 17 00:00:00 2001 From: Debian Date: Fri, 18 Sep 2026 12:20:46 +0200 Subject: [PATCH] Announce the winner of aborted matches too, only restarts stay silent Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- lib/parser.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/parser.py b/lib/parser.py index a42daf5..8e58dfd 100644 --- a/lib/parser.py +++ b/lib/parser.py @@ -347,12 +347,8 @@ class EventParser: if not self.game_state.server_info.is_team_mode(): return None - # Aborted/restarted matches have no winner - except forfeits, where - # the remaining scores are final and name a winner - exit_msg = str(data.get('EXIT_MSG', '') or '') - is_forfeit = 'forfeit' in exit_msg.lower() - if data.get('ABORTED') in (True, 'true', '1', 1) and not is_forfeit: - return None + # Restarted matches (server shutdown mid-game) have no winner; aborts + # and forfeits still have final scores that name one try: if int(data.get('RESTARTED', 0) or 0) != 0: return None