From a3403e382998dd8b4e776a5ba658bc09132ae635 Mon Sep 17 00:00:00 2001 From: gretchen Date: Mon, 25 Mar 2024 10:43:36 +0100 Subject: [PATCH] update readme and check if item key exists --- README.md | 4 ++-- core/history.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 942de82..2b1b81b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# AUX Turtle +# aux Turtle -* Shares some price data through the LFT chat when scanning items, use **/aux sharing** to disable sending and receiving data. +* Shares some price data through the LFT chat when searching the AH, use **/aux sharing** to disable sending and receiving data. * Accurate auction durations for Turtle WoW. * Autocompletion for custom Turtle WoW items. diff --git a/core/history.lua b/core/history.lua index 6cc7b80..093147a 100644 --- a/core/history.lua +++ b/core/history.lua @@ -86,7 +86,7 @@ AUX_data_sharer:SetScript("OnEvent", function() if msg == "AuxData" then if arg2 ~= AUXplayerName then local unit_buyout_price = tonumber (munit_buyout_price) - if unit_buyout_price then + if unit_buyout_price and item_key then --print("received data:" .. msg .. "," .. item_key .. "," .. unit_buyout_price); --for testing (print comes from PFUI) local item_record = read_record(item_key) if unit_buyout_price > 0 and unit_buyout_price < (item_record.daily_min_buyout or aux.huge) then