mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 08:25:28 +00:00
Stage 2 of deprecation for IsBotAccount, --server and --service
This commit is contained in:
@@ -129,19 +129,16 @@ namespace ArchiSteamFarm {
|
||||
[JsonProperty]
|
||||
internal string SteamPassword { get; set; }
|
||||
|
||||
private bool DeprecatedConfig;
|
||||
private bool ShouldSerializeSensitiveDetails = true;
|
||||
|
||||
[JsonProperty(Required = Required.DisallowNull)]
|
||||
[SuppressMessage("ReSharper", "ValueParameterNotUsed")]
|
||||
private bool IsBotAccount {
|
||||
set {
|
||||
// TODO: Deprecate further in the next version
|
||||
ASF.ArchiLogger.LogGenericWarning(string.Format(Strings.WarningDeprecated, nameof(IsBotAccount), nameof(BotBehaviour)));
|
||||
|
||||
if (value) {
|
||||
BotBehaviour |= EBotBehaviour.RejectInvalidFriendInvites;
|
||||
BotBehaviour |= EBotBehaviour.RejectInvalidTrades;
|
||||
BotBehaviour |= EBotBehaviour.RejectInvalidGroupInvites;
|
||||
}
|
||||
ASF.ArchiLogger.LogGenericError(string.Format(Strings.WarningDeprecated, nameof(IsBotAccount), nameof(BotBehaviour)));
|
||||
DeprecatedConfig = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -186,6 +183,10 @@ namespace ArchiSteamFarm {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (botConfig.DeprecatedConfig) {
|
||||
return null;
|
||||
}
|
||||
|
||||
botConfig.ShouldSerializeSensitiveDetails = false;
|
||||
|
||||
// Support encrypted passwords
|
||||
|
||||
Reference in New Issue
Block a user