Skip to content

Commit

Permalink
Use Global Blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Dec 23, 2015
1 parent ab3bfe2 commit 9fa23ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ArchiSteamFarm/Bot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ internal sealed class Bot {
private static readonly ConcurrentDictionary<string, Bot> Bots = new ConcurrentDictionary<string, Bot>();
private static readonly uint LoginID = MsgClientLogon.ObfuscationMask; // This must be the same for all ASF bots and all ASF processes

internal static readonly HashSet<uint> GlobalBlacklist = new HashSet<uint> { 303700, 335590, 368020, 425280 };

private readonly string ConfigFile, LoginKeyFile, MobileAuthenticatorFile, SentryFile;

internal readonly string BotName;
Expand Down Expand Up @@ -73,7 +75,7 @@ internal sealed class Bot {
internal bool HandleOfflineMessages { get; private set; } = false;
internal bool UseAsfAsMobileAuthenticator { get; private set; } = false;
internal bool ShutdownOnFarmingFinished { get; private set; } = false;
internal HashSet<uint> Blacklist { get; private set; } = new HashSet<uint> { 303700, 335590, 368020, 425280 };
internal HashSet<uint> Blacklist { get; private set; } = new HashSet<uint>();
internal bool Statistics { get; private set; } = true;

private static bool IsValidCdKey(string key) {
Expand Down
2 changes: 1 addition & 1 deletion ArchiSteamFarm/CardsFarmer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ internal async Task StartFarming() {
continue;
}

if (Bot.Blacklist.Contains(appID)) {
if (Bot.GlobalBlacklist.Contains(appID) || Bot.Blacklist.Contains(appID)) {
continue;
}

Expand Down

0 comments on commit 9fa23ec

Please sign in to comment.