From 73f123fd4dd56fefafc30665ef46c216fa458640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20=C3=81lvarez?= Date: Sat, 1 Nov 2014 13:19:44 +0100 Subject: [PATCH] support for different channels this checks if you are in raid or party group --- Broker_ConsolidatedBuffs.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Broker_ConsolidatedBuffs.lua b/Broker_ConsolidatedBuffs.lua index 6205f09..d8c3286 100644 --- a/Broker_ConsolidatedBuffs.lua +++ b/Broker_ConsolidatedBuffs.lua @@ -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 })