add additional check for bot ping

This commit is contained in:
RaidMax 2023-08-26 22:56:59 -05:00
parent 80774853b6
commit 648eec25f2

View File

@ -304,7 +304,7 @@ namespace IW4MAdmin.Application.RConParsers
{
networkIdString = match.Values[Configuration.Status.GroupMapping[ParserRegex.GroupType.RConNetworkId]];
networkId = networkIdString.IsBotGuid() || (ip == null && ping == 999) ?
networkId = networkIdString.IsBotGuid() || (ip == null && ping is 999 or 0) ?
name.GenerateGuidFromString() :
networkIdString.ConvertGuidToLong(Configuration.GuidNumberStyle);
}