Quantcast

-Apparently global channels weren't being affected.

Xruptor [11-19-10 - 15:44]
-Apparently global channels weren't being affected.
Filename
XanChat.lua
XanChat.toc
diff --git a/XanChat.lua b/XanChat.lua
index 140f3d9..bc8868d 100644
--- a/XanChat.lua
+++ b/XanChat.lua
@@ -49,6 +49,18 @@ function XanChat_doChat()
 	for i,v in pairs(CHAT_CONFIG_CHAT_LEFT) do
 		ToggleChatColorNamesByClassGroup(true, v.type)
 	end
+	--this is to toggle class colors for all the global channels that is not listed under CHAT_CONFIG_CHAT_LEFT
+	local chanNum = 1
+	local cId, cName = GetChannelName(chanNum)
+	while (cId > 0 and cName ~= nil) do
+		--set the class color for the channel
+		ToggleChatColorNamesByClassGroup(true, "CHANNEL"..cId)
+		--increment
+		chanNum = chanNum + 1
+		cId, cName = GetChannelName(chanNum)
+		if chanNum >= 10 then break end
+	end
+

 	for i = 1, NUM_CHAT_WINDOWS do
 		local f = _G[("ChatFrame%d"):format(i)]
diff --git a/XanChat.toc b/XanChat.toc
index 2fca8ba..fb3aa1d 100644
--- a/XanChat.toc
+++ b/XanChat.toc
@@ -2,6 +2,6 @@
 ## Title: XanChat
 ## Notes: A very minimalistic chat modification addon.
 ## Author: Xruptor
-## Version: 1.1
+## Version: 1.2

 XanChat.lua