From aed4609ed8225dc3466f4d2496bf5d89d79df328 Mon Sep 17 00:00:00 2001 From: alterNERDtive Date: Wed, 19 May 2021 09:54:40 +0200 Subject: [PATCH] RatAttack: fixed code red detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … broke with the reworked case announcement. fixes #115 --- CHANGELOG.md | 2 ++ plugins/RatAttack/RatAttack.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 59efdb7..cb1fa9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ * Added handling for Odyssey clients. (#114) * Correctly setting system for manual Ratsignals (`""`) to `None` now. IMO a Mecha bug, but whatever. +* Code reds are now correctly detected again with the new case announcement + format. (#115) ----- diff --git a/plugins/RatAttack/RatAttack.cs b/plugins/RatAttack/RatAttack.cs index bcd30d7..788a2da 100644 --- a/plugins/RatAttack/RatAttack.cs +++ b/plugins/RatAttack/RatAttack.cs @@ -98,7 +98,7 @@ namespace RatAttack bool permitLocked = match.Groups["permit"].Success; string? permitName = match.Groups["permitName"].Value; string platform = match.Groups["platform"].Value; - bool codeRed = match.Groups["oxygen"].Value == "NOT OK"; + bool codeRed = match.Groups["oxygen"].Success; bool odyssey = match.Groups["odyssey"].Success; int number = int.Parse(match.Groups["number"].Value);