This commit is contained in:
JustArchi
2016-07-31 17:38:14 +02:00
parent fda3b1ac31
commit 82cbcecb6b
3 changed files with 23 additions and 10 deletions

View File

@@ -147,6 +147,11 @@ namespace ArchiSteamFarm {
return null;
}
if (botConfig == null) {
Logging.LogNullError(nameof(botConfig));
return null;
}
// Support encrypted passwords
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