Use Global Blacklist

This commit is contained in:
JustArchi 2015-12-23 09:40:42 +01:00
parent ab3bfe2460
commit 9fa23ecddf
2 changed files with 4 additions and 2 deletions

View file

@ -42,6 +42,8 @@ namespace ArchiSteamFarm {
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;
@ -73,7 +75,7 @@ namespace ArchiSteamFarm {
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) {

View file

@ -194,7 +194,7 @@ namespace ArchiSteamFarm {
continue;
}
if (Bot.Blacklist.Contains(appID)) {
if (Bot.GlobalBlacklist.Contains(appID) || Bot.Blacklist.Contains(appID)) {
continue;
}