support for different channels
this checks if you are in raid or party group
This commit is contained in:
parent
ea5b126c9d
commit
73f123fd4d
|
@ -38,7 +38,15 @@ local BrokerConsolidatedBuffs = ldb:NewDataObject("Broker_ConsolidatedBuffs", {
|
|||
end
|
||||
|
||||
if missing ~= "" then
|
||||
SendChatMessage(ADDON_MISSING..": "..strsub(missing, 0, strlen(missing)-2), "SAY")
|
||||
local channel = "SAY"
|
||||
if IsInGroup(LE_PARTY_CATEGORY_INSTANCE) then
|
||||
channel = "INSTANCE_CHAT"
|
||||
elseif IsInRaid() then
|
||||
channel = "RAID"
|
||||
elseif IsInGroup() then
|
||||
channel = "PARTY"
|
||||
end
|
||||
SendChatMessage(ADDON_MISSING..": "..strsub(missing, 0, strlen(missing)-2), channel)
|
||||
end
|
||||
end
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue