Quantcast

-A slight fix for the class colors. Ooops :P

Xruptor [11-19-10 - 13:43]
-A slight fix for the class colors.  Ooops :P
Filename
XanChat.lua
XanChat.toc
diff --git a/XanChat.lua b/XanChat.lua
index a4c3b7d..140f3d9 100644
--- a/XanChat.lua
+++ b/XanChat.lua
@@ -12,10 +12,6 @@ local StickyTypeChannels = {
   CHANNEL = 1,
 };

-for i,v in pairs(CHAT_CONFIG_CHAT_LEFT) do
-	ToggleChatColorNamesByClassGroup(true, v.type)
-end
-
 local function scrollChat(frame, delta)
 	--Faster Scroll
 	if IsControlKeyDown()  then
@@ -48,6 +44,11 @@ function XanChat_doChat()
 	for k, v in pairs(StickyTypeChannels) do
 	  ChatTypeInfo[k].sticky = v;
 	end
+
+	--toggle class colors
+	for i,v in pairs(CHAT_CONFIG_CHAT_LEFT) do
+		ToggleChatColorNamesByClassGroup(true, v.type)
+	end

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

 XanChat.lua