don't share data if search query is empty
This commit is contained in:
+7
-5
@@ -108,11 +108,13 @@ AUX_data_sharer:SetScript("OnEvent", function()
|
|||||||
write_record(auction_record.item_key, item_record)
|
write_record(auction_record.item_key, item_record)
|
||||||
--AuxAddon:SendCommMessage("GUILD", item_key, unit_buyout_price) relies on acecomm
|
--AuxAddon:SendCommMessage("GUILD", item_key, unit_buyout_price) relies on acecomm
|
||||||
if aux.account_data.sharing == true then
|
if aux.account_data.sharing == true then
|
||||||
if pages == nil or pages < 15 then --sometimes pages is nil, not entirely sure why but we'll assume it's nothing worrying xd
|
if pages == nil or pages < 15 then --sometimes pages is nil, not entirely sure why but we'll assume it's nothing worrying xd NVM it does seem bad, need to investigate
|
||||||
if GetChannelName("LFT") ~= 0 then
|
if auction_record.blizzard_query.name ~= '' then --if search query is empty, dont share data
|
||||||
SendChatMessage("AuxData," .. item_key .."," .. unit_buyout_price , "CHANNEL", nil, GetChannelName("LFT"))
|
if GetChannelName("LFT") ~= 0 then
|
||||||
--print("sent")
|
SendChatMessage("AuxData," .. item_key .."," .. unit_buyout_price , "CHANNEL", nil, GetChannelName("LFT"))
|
||||||
end
|
--print("sent")
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user