From f0056737c319f2e5e9a63ebc6377a98b4525899c Mon Sep 17 00:00:00 2001 From: gretchen Date: Tue, 9 Jan 2024 13:42:37 +0100 Subject: [PATCH] handle pages being nil, unsure why that happens but uh --- core/history.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/history.lua b/core/history.lua index cba02d7..140e12c 100644 --- a/core/history.lua +++ b/core/history.lua @@ -107,11 +107,13 @@ AUX_data_sharer:SetScript("OnEvent", function() item_record.daily_min_buyout = unit_buyout_price write_record(auction_record.item_key, item_record) --AuxAddon:SendCommMessage("GUILD", item_key, unit_buyout_price) relies on acecomm - if pages < 15 and aux.account_data.sharing == true then + if aux.account_data.sharing == true then + if pages < 15 or pages == nil then if GetChannelName("LFT") ~= 0 then SendChatMessage("AuxData," .. item_key .."," .. unit_buyout_price , "CHANNEL", nil, GetChannelName("LFT")) --print("sent") - end + end + end end end end