support for different channels

this checks if you are in raid or party group
This commit is contained in:
Sergio Álvarez 2014-11-01 13:19:44 +01:00
parent ea5b126c9d
commit 73f123fd4d
1 changed files with 9 additions and 1 deletions

View File

@ -38,7 +38,15 @@ local BrokerConsolidatedBuffs = ldb:NewDataObject("Broker_ConsolidatedBuffs", {
end end
if missing ~= "" then 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
end end
}) })