This commit is contained in:
JustArchi
2016-06-28 04:34:51 +02:00
parent 8d9fbce2ed
commit 0dc131b79b

View File

@@ -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);
}