From f7684d4010b3d49dc4854c867b3a78bb8683a3f3 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Wed, 13 Jan 2021 22:37:54 -0500 Subject: [PATCH] Prefer print to attaching to default chat frame (fixes #7) --- MyAddon.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MyAddon.lua b/MyAddon.lua index 1765de7..ae31f62 100755 --- a/MyAddon.lua +++ b/MyAddon.lua @@ -50,7 +50,7 @@ function events:MERCHANT_SHOW(...) -- Repair if we need to and merchant allows it if CanMerchantRepair() and MyAddon.needsRepair() then RepairAllItems(CanGuildBankRepair()) - DEFAULT_CHAT_FRAME:AddMessage("Your items have been repaired") + print("Your items have been repaired") end end @@ -123,7 +123,7 @@ function MyAddon.sellGrayItems() for slot = 1, GetContainerNumSlots(bag) do local name = GetContainerItemLink(bag, slot) if name and string.find(name, "ff9d9d9d") then - DEFAULT_CHAT_FRAME:AddMessage("Selling "..name) + print("Selling "..name) UseContainerItem(bag, slot) end end