comparison Main.lua @ 243:d7ed64be54b8

Don't record Black Market AH data from disallowed locales.
author James D. Callahan III <jcallahan@curse.com>
date Mon, 11 Mar 2013 07:59:33 -0500
parents 750195edac78
children 9b1faccbccc8
comparison
equal deleted inserted replaced
242:d3fac32847e6 243:d7ed64be54b8
1011 1011
1012 ----------------------------------------------------------------------- 1012 -----------------------------------------------------------------------
1013 -- Event handlers. 1013 -- Event handlers.
1014 ----------------------------------------------------------------------- 1014 -----------------------------------------------------------------------
1015 function WDP:BLACK_MARKET_ITEM_UPDATE(event_name) 1015 function WDP:BLACK_MARKET_ITEM_UPDATE(event_name)
1016 if not ALLOWED_LOCALES[CLIENT_LOCALE] then
1017 return
1018 end
1016 local num_items = _G.C_BlackMarket.GetNumItems() 1019 local num_items = _G.C_BlackMarket.GetNumItems()
1017 1020
1018 for index = 1, num_items do 1021 for index = 1, num_items do
1019 local name, texture, quantity, item_type, is_usable, level, level_type, seller_name, min_bid, min_increment, current_bid, has_high_bid, num_bids, time_left, item_link, market_id = _G.C_BlackMarket.GetItemInfoByIndex(index); 1022 local name, texture, quantity, item_type, is_usable, level, level_type, seller_name, min_bid, min_increment, current_bid, has_high_bid, num_bids, time_left, item_link, market_id = _G.C_BlackMarket.GetItemInfoByIndex(index);
1020 1023