From 0dc131b79bd7c837b888c2f37088048de6f9ace2 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Tue, 28 Jun 2016 04:34:51 +0200 Subject: [PATCH] Misc --- ArchiSteamFarm/BotConfig.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArchiSteamFarm/BotConfig.cs b/ArchiSteamFarm/BotConfig.cs index fc0fcd4a8..d58688d6e 100644 --- a/ArchiSteamFarm/BotConfig.cs +++ b/ArchiSteamFarm/BotConfig.cs @@ -130,7 +130,7 @@ namespace ArchiSteamFarm { } // Support encrypted passwords - if (!string.IsNullOrEmpty(botConfig.SteamPassword) && (botConfig.PasswordFormat != CryptoHelper.ECryptoMethod.PlainText)) { + if ((botConfig.PasswordFormat != CryptoHelper.ECryptoMethod.PlainText) && !string.IsNullOrEmpty(botConfig.SteamPassword)) { // In worst case password will result in null, which will have to be corrected by user during runtime botConfig.SteamPassword = CryptoHelper.Decrypt(botConfig.PasswordFormat, botConfig.SteamPassword); }