From ae2cd05454e793289ab2818faaabf8516aa8c7a1 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Sat, 22 Dec 2018 14:45:36 +0100 Subject: [PATCH] Misc --- ArchiSteamFarm/ArchiWebHandler.cs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/ArchiSteamFarm/ArchiWebHandler.cs b/ArchiSteamFarm/ArchiWebHandler.cs index ef65a580e..abafcb17d 100644 --- a/ArchiSteamFarm/ArchiWebHandler.cs +++ b/ArchiSteamFarm/ArchiWebHandler.cs @@ -1814,16 +1814,28 @@ namespace ArchiSteamFarm { return (false, false); } - switch (userPrivacy.Settings.Inventory) { + switch (userPrivacy.Settings.Profile) { case Steam.UserPrivacy.PrivacySettings.EPrivacySetting.FriendsOnly: case Steam.UserPrivacy.PrivacySettings.EPrivacySetting.Private: return (true, false); case Steam.UserPrivacy.PrivacySettings.EPrivacySetting.Public: - return (true, true); + switch (userPrivacy.Settings.Inventory) { + case Steam.UserPrivacy.PrivacySettings.EPrivacySetting.FriendsOnly: + case Steam.UserPrivacy.PrivacySettings.EPrivacySetting.Private: + + return (true, false); + case Steam.UserPrivacy.PrivacySettings.EPrivacySetting.Public: + + return (true, true); + default: + Bot.ArchiLogger.LogGenericError(string.Format(Strings.WarningUnknownValuePleaseReport, nameof(userPrivacy.Settings.Inventory), userPrivacy.Settings.Inventory)); + + return (false, false); + } default: - Bot.ArchiLogger.LogGenericError(string.Format(Strings.WarningUnknownValuePleaseReport, nameof(userPrivacy.Settings.Inventory), userPrivacy.Settings.Inventory)); + Bot.ArchiLogger.LogGenericError(string.Format(Strings.WarningUnknownValuePleaseReport, nameof(userPrivacy.Settings.Profile), userPrivacy.Settings.Profile)); return (false, false); }