RatAttack: Updated RATSIGNAL parsing for new nick announcement

see 1686fced33
This commit is contained in:
alterNERDtive 2021-02-17 13:24:44 +01:00
parent d210779967
commit 4c3b890120
2 changed files with 2 additions and 1 deletions

View file

@ -37,6 +37,7 @@
* Updated RATSIGNAL parsing to correctly handle new format for landmark systems.
* Updated RATSIGNAL parsing to accomodate new “Invalid system name” info and
colouration.
* Updated RATSIGNAL parsing for new nick announcement (if different than CMDR name)
## SpanshAttack 7.1

View file

@ -18,7 +18,7 @@ namespace RatAttack
private static alterNERDtive.util.PipeServer<Ratsignal>? ratsignalPipe;
private static readonly Regex RatsignalRegex = new Regex(
@"^RATSIGNAL - CMDR (?<cmdr>.+) - Reported System: (None|""(?<system>.+)""(\x0314)? \((?<systemInfo>.*([0-9,\.]+ LY from [a-zA-Z0-9\s]+|Not found in galaxy database|Invalid system name)?)\)(\x03)?(?<permit> \x037\(((?<permitName>.*) )?Permit Required\)\x03)?) - Platform: \x03(6|3|12)(?<platform>(PC|Xbox|Playstation))\x03 - O2: (\x034)?(?<oxygen>(NOT )?OK)\x03? - Language: .+ \(\x02Case #(?<number>\d+)\x02\) \((PC|XB|PS)_SIGNAL\)\v*$"
@"^RATSIGNAL - CMDR (?<cmdr>.+) - Reported System: (None|""(?<system>.+)""(\x0314)? \((?<systemInfo>.*([0-9,\.]+ LY from [a-zA-Z0-9\s]+|Not found in galaxy database|Invalid system name)?)\)(\x03)?(?<permit> \x037\(((?<permitName>.*) )?Permit Required\)\x03)?) - Platform: \x03(6|3|12)(?<platform>(PC|Xbox|Playstation))\x03 - O2: (\x034)?(?<oxygen>(NOT )?OK)\x03? - Language: .+ (- IRC Nick (?<nick>[a-zA-Z_\[\]\-]+))?\(\x02Case #(?<number>\d+)\x02\) \((PC|XB|PS)_SIGNAL\)\v*$"
);
private static VoiceAttackLog Log