Quantcast

quick patch

Munglunch [08-19-14 - 18:38]
quick patch
Filename
Interface/AddOns/SVUI/system/slash.lua
diff --git a/Interface/AddOns/SVUI/system/slash.lua b/Interface/AddOns/SVUI/system/slash.lua
index dcd4aae..122a57c 100644
--- a/Interface/AddOns/SVUI/system/slash.lua
+++ b/Interface/AddOns/SVUI/system/slash.lua
@@ -20,6 +20,21 @@ LOCAL VARS
 ##########################################################
 ]]--
 local lower, trim = string.lower, string.trim
+
+local MsgTest = function(warning)
+	if IsInGroup(LE_PARTY_CATEGORY_INSTANCE) then
+		return "INSTANCE_CHAT"
+	elseif IsInRaid(LE_PARTY_CATEGORY_HOME) then
+		if warning and (UnitIsGroupLeader("player") or UnitIsGroupAssistant("player") or IsEveryoneAssistant()) then
+			return "RAID_WARNING"
+		else
+			return "RAID"
+		end
+	elseif IsInGroup(LE_PARTY_CATEGORY_HOME) then
+		return "PARTY"
+	end
+	return "SAY"
+end
 --[[
 ##########################################################
 LOCAL SLASH FUNCTIONS