You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ArchiSteamFarm/Steam/Exchange/Trading.cs
+1-5Lines changed: 1 addition & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,6 @@
22
22
// limitations under the License.
23
23
24
24
usingSystem;
25
-
usingSystem.Collections.Frozen;
26
25
usingSystem.Collections.Generic;
27
26
usingSystem.Linq;
28
27
usingSystem.Threading;
@@ -45,9 +44,6 @@ public sealed class Trading : IDisposable {
45
44
internalconstbyteMaxItemsPerTrade=byte.MaxValue;// This is decided upon various factors, mainly stability of Steam servers when dealing with huge trade offers
46
45
internalconstbyteMaxTradesPerAccount=5;// This is limit introduced by Valve
if(!Bot.BotDatabase.TradeRestrictionsAcknowledged&&tradeResults.Any(static result =>((result.Result==ParseTradeResult.EResult.Accepted)&&(result.ItemsToGive?.Any(static item =>TradeRestrictionsAppIDs.Contains(item.AppID))==true))||(result.ItemsToReceive?.Any(static item =>TradeRestrictionsAppIDs.Contains(item.AppID))==true))){
297
+
if(!Bot.BotDatabase.TradeRestrictionsAcknowledged&&tradeResults.Any(static result =>((result.Result==ParseTradeResult.EResult.Accepted)&&(result.ItemsToGive?.Any(static item =>item.AppID!=Asset.SteamAppID)==true))||(result.ItemsToReceive?.Any(static item =>item.AppID!=Asset.SteamAppID)==true))){
302
298
// We should normally fail the process in case of a failure here, but since the popup could be marked already in the past, we'll allow it in hope it wasn't needed after all
// In similar way we might need to accept popup on Steam side, we limit it only to cases that we're aware of, as sending this request otherwise is additional overhead for no reason
// We should normally fail the process in case of a failure here, but since the popup could be marked already in the past, we'll allow it in hope it wasn't needed after all
0 commit comments