Revert "Make SendOnFarmingFinished work only with ASF 2FA"

This reverts commit 39e61c075f.
This commit is contained in:
JustArchi
2018-12-10 18:38:58 +01:00
parent aee6aecba1
commit 7383cb8c21
3 changed files with 3 additions and 3 deletions

View File

@@ -817,7 +817,7 @@ namespace ArchiSteamFarm {
if (farmedSomething || !FirstTradeSent) {
FirstTradeSent = true;
if (BotConfig.SendOnFarmingFinished && HasMobileAuthenticator) {
if (BotConfig.SendOnFarmingFinished) {
await Actions.SendTradeOffer(wantedTypes: BotConfig.LootableTypes).ConfigureAwait(false);
}
}

View File

@@ -168,7 +168,7 @@ namespace ArchiSteamFarm {
// If we're not farming, and we got new items, it's likely to be a booster pack or likewise
// In this case, perform a loot if user wants to do so
if (Bot.BotConfig.SendOnFarmingFinished && Bot.HasMobileAuthenticator) {
if (Bot.BotConfig.SendOnFarmingFinished) {
await Bot.Actions.SendTradeOffer(wantedTypes: Bot.BotConfig.LootableTypes).ConfigureAwait(false);
}
}

View File

@@ -396,7 +396,7 @@ namespace ArchiSteamFarm {
}
}
if (results.Any(result => (result.TradeResult != null) && (result.TradeResult.Result == ParseTradeResult.EResult.Accepted) && (!result.RequiresMobileConfirmation || Bot.HasMobileAuthenticator) && (result.TradeResult.ReceivingItemTypes?.Any(receivedItemType => Bot.BotConfig.LootableTypes.Contains(receivedItemType)) == true)) && Bot.BotConfig.SendOnFarmingFinished && Bot.HasMobileAuthenticator) {
if (results.Any(result => (result.TradeResult != null) && (result.TradeResult.Result == ParseTradeResult.EResult.Accepted) && (!result.RequiresMobileConfirmation || Bot.HasMobileAuthenticator) && (result.TradeResult.ReceivingItemTypes?.Any(receivedItemType => Bot.BotConfig.LootableTypes.Contains(receivedItemType)) == true)) && Bot.BotConfig.SendOnFarmingFinished) {
// If we finished a trade, perform a loot if user wants to do so
await Bot.Actions.SendTradeOffer(wantedTypes: Bot.BotConfig.LootableTypes).ConfigureAwait(false);
}