Do the same with SendTradePeriod

This commit is contained in:
JustArchi
2018-12-09 23:10:33 +01:00
parent 39e61c075f
commit aee6aecba1

View File

@@ -1448,7 +1448,7 @@ namespace ArchiSteamFarm {
SendItemsTimer = null;
}
if ((BotConfig.SendTradePeriod > 0) && BotConfig.SteamUserPermissions.Values.Any(permission => permission >= BotConfig.EPermission.Master)) {
if ((BotConfig.SendTradePeriod > 0) && BotConfig.SteamUserPermissions.Values.Any(permission => permission >= BotConfig.EPermission.Master) && HasMobileAuthenticator) {
SendItemsTimer = new Timer(
async e => await Actions.SendTradeOffer(wantedTypes: BotConfig.LootableTypes).ConfigureAwait(false),
null,