Skip to content

Commit

Permalink
add additional check for bot ping
Browse files Browse the repository at this point in the history
  • Loading branch information
RaidMax committed Aug 27, 2023
1 parent a169653 commit 4025cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Application/RConParsers/BaseRConParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ private List<EFClient> ClientsFromStatus(string[] Status)
{
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);
}
Expand Down

0 comments on commit 4025cbc

Please sign in to comment.