Skip to content

Commit 563ab56

Browse files
committed
Match trade inventory suppression to active trade partner
1 parent 8fa8d3b commit 563ab56

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

UI/MultiBotInventoryFrame.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,10 @@ local function shouldSuppressTradeInventoryWhisper(message, author)
166166
return true
167167
end
168168

169+
local tradePartner = UnitName and UnitName("NPC") or nil
169170
if isKnownInventoryBotAuthor(author)
171+
and tradePartner
172+
and authorKey == normalizeInventoryAuthorName(tradePartner)
170173
and TradeFrame
171174
and TradeFrame.IsShown
172175
and TradeFrame:IsShown()

0 commit comments

Comments
 (0)