Update shootyepgp.lua

This commit is contained in:
Horyoshi
2025-02-13 11:54:29 +01:00
committed by GitHub
parent 56ccc6ebdc
commit 3e80b77a9d
+4 -3
View File
@@ -1204,16 +1204,17 @@ function sepgp:addonComms(prefix, message, channel, sender)
-- Process BIDITEM messages to set bid item info on all clients and auto open bids window
if string.sub(message, 1, 8) == "BIDITEM;" then
sepgp:clearBids(true) -- Clear the bid window for everyone
local s, e, bidItemLink = string.find(message, "BIDITEM;(.+)")
if bidItemLink then
sepgp.bid_item = sepgp.bid_item or {}
sepgp.bid_item.linkFull = bidItemLink
local found, _, itemColor, itemString, itemName = string.find(bidItemLink, "^(|c%x+)|H(.+)|h(%[.+%])")
if found then
sepgp.bid_item.link = itemString
sepgp.bid_item.name = string.format("%s%s|r", itemColor, itemName)
sepgp.bid_item.link = itemString
sepgp.bid_item.name = string.format("%s%s|r", itemColor, itemName)
end
-- Auto–open the bids window on all clients
-- Auto-open the bids window on all clients
sepgp_bids:Toggle(true)
end
return