diff --git a/Pathfinder/PathfinderHooks.cs b/Pathfinder/PathfinderHooks.cs index 4e5840b7..7a154cd2 100644 --- a/Pathfinder/PathfinderHooks.cs +++ b/Pathfinder/PathfinderHooks.cs @@ -719,7 +719,14 @@ public static bool onSCOnConnectCheck(SCOnConnect self, out bool retVal, ref Com { var os = (OS) objOS; - Console.WriteLine(computer); + if (!string.IsNullOrWhiteSpace(self.requiredFlags)) + { + if (self.requiredFlags.Split(Utils.commaDelim, StringSplitOptions.RemoveEmptyEntries).Any(flag => !os.Flags.HasFlag(flag))) + { + retVal = false; + return true; + } + } if (self.needsMissionComplete) {