From a993b26e999ef85658b58d7d44afbf6ddadb0eba Mon Sep 17 00:00:00 2001 From: Vitaliy Chumakov Date: Mon, 5 Aug 2019 14:01:29 +0300 Subject: [PATCH] Fix wallet code redeeming due to Steam changes --- ArchiSteamFarm/Commands.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArchiSteamFarm/Commands.cs b/ArchiSteamFarm/Commands.cs index bd9363c02..9fe3ef77a 100644 --- a/ArchiSteamFarm/Commands.cs +++ b/ArchiSteamFarm/Commands.cs @@ -2196,7 +2196,8 @@ namespace ArchiSteamFarm { // Either bot will be changed, or loop aborted currentBot = null; } else { - if ((result.PurchaseResultDetail == EPurchaseResultDetail.CannotRedeemCodeFromClient) && (Bot.WalletCurrency != ECurrencyCode.Invalid)) { + if ((result.PurchaseResultDetail == EPurchaseResultDetail.BadActivationCode) && (Bot.WalletCurrency != ECurrencyCode.Invalid)) { + // We may try to assume that key is a wallet code, because Steam gives BadActivationCode in this case // If it's a wallet code, we try to redeem it first, then handle the inner result as our primary one (EResult Result, EPurchaseResultDetail? PurchaseResult)? walletResult = await currentBot.ArchiWebHandler.RedeemWalletKey(key).ConfigureAwait(false);