RatAttack: fixed code red detection

… broke with the reworked case announcement.

fixes #115
This commit is contained in:
alterNERDtive 2021-05-19 09:54:40 +02:00
parent 1991e6b5f6
commit aed4609ed8
2 changed files with 3 additions and 1 deletions

View file

@ -7,6 +7,8 @@
* Added handling for Odyssey clients. (#114) * Added handling for Odyssey clients. (#114)
* Correctly setting system for manual Ratsignals (`""`) to `None` now. IMO a * Correctly setting system for manual Ratsignals (`""`) to `None` now. IMO a
Mecha bug, but whatever. Mecha bug, but whatever.
* Code reds are now correctly detected again with the new case announcement
format. (#115)
----- -----

View file

@ -98,7 +98,7 @@ namespace RatAttack
bool permitLocked = match.Groups["permit"].Success; bool permitLocked = match.Groups["permit"].Success;
string? permitName = match.Groups["permitName"].Value; string? permitName = match.Groups["permitName"].Value;
string platform = match.Groups["platform"].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; bool odyssey = match.Groups["odyssey"].Success;
int number = int.Parse(match.Groups["number"].Value); int number = int.Parse(match.Groups["number"].Value);