1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 23:31:13 -05:00

add initial support for LFD2

This commit is contained in:
RaidMax
2023-09-02 15:35:40 -05:00
parent 8d2a5a3ba3
commit a66a502480
4 changed files with 145 additions and 4 deletions

View File

@ -194,10 +194,14 @@ namespace IW4MAdmin.Application.RConParsers
foreach (var line in response)
{
var regex = Regex.Match(line, parserRegex.Pattern);
if (regex.Success && parserRegex.GroupMapping.ContainsKey(groupType))
if (!regex.Success || !parserRegex.GroupMapping.ContainsKey(groupType))
{
value = regex.Groups[parserRegex.GroupMapping[groupType]].ToString();
continue;
}
value = regex.Groups[parserRegex.GroupMapping[groupType]].ToString();
break;
}
if (value == null)