Add support for blacklist feature, fix SMG

This commit is contained in:
JustArchi
2015-10-28 22:34:53 +01:00
parent 639067d04f
commit cd0d0a94a1
5 changed files with 29 additions and 10 deletions

View File

@@ -62,6 +62,7 @@ namespace ArchiSteamFarm {
private string SteamApiKey { get { return Config["SteamApiKey"]; } }
internal ulong SteamMasterID { get { return ulong.Parse(Config["SteamMasterID"]); } }
private ulong SteamMasterClanID { get { return ulong.Parse(Config["SteamMasterClanID"]); } }
internal HashSet<uint> Blacklist { get; } = new HashSet<uint>();
internal Bot(string botName) {
BotName = botName;
@@ -97,6 +98,14 @@ namespace ArchiSteamFarm {
}
Config.Add(key, value);
switch (key) {
case "Blacklist":
foreach (string appID in value.Split(',')) {
Blacklist.Add(uint.Parse(appID));
}
break;
}
}
}
}
@@ -187,6 +196,7 @@ namespace ArchiSteamFarm {
if (callback == null) {
return;
}
if (SteamClient == null) {
return;
}