willox / hash.js

Horrific chat bot that was once used in the "Garry's Mod Coders" Steam group chat
http://steamcommunity.com/groups/glua
Creative Commons Zero v1.0 Universal
3 stars 0 forks source link

Trade system bugs #105

Open mcd1992 opened 9 years ago

mcd1992 commented 9 years ago

Trinity the tradeOffers hook code iterates over the history of trade offers.

self.TradeOffers.getItems( { tradeId: offer.tradeid }, function( error, items ) {

items is a array of objects from the last 3+ trades. This is why its spamming chat on trade.

alexrsagen commented 9 years ago

If you read my code, you would have seen that this is present in the config options for getOffers.

get_received_offers: 1,
active_only: 1,
time_historical_cutoff: Math.round(Date.now() / 1000)