Quantcast

-Small update to make the short names ignore the combatlog.

Xruptor [01-04-11 - 13:50]
-Small update to make the short names ignore the combatlog.
Filename
XanChat.lua
XanChat.toc
diff --git a/XanChat.lua b/XanChat.lua
index b859ab1..1df656e 100644
--- a/XanChat.lua
+++ b/XanChat.lua
@@ -292,8 +292,8 @@ function eFrame:PLAYER_LOGIN()
 				_G[n.."ButtonFrame"]:SetScript("OnShow", dummy)
 			end

-			--enable/disable short channel names by hooking into AddMessage
-			if XCHT_DB.shortNames and not msgHooks[n] then
+			--enable/disable short channel names by hooking into AddMessage (ignore the combatlog)
+			if XCHT_DB.shortNames and f ~= COMBATLOG and not msgHooks[n] then
 				msgHooks[n] = {}
 				msgHooks[n].AddMessage = f.AddMessage
 				f.AddMessage = AddMessage
diff --git a/XanChat.toc b/XanChat.toc
index e80f463..c943cb3 100644
--- a/XanChat.toc
+++ b/XanChat.toc
@@ -2,7 +2,7 @@
 ## Title: xanChat
 ## Notes: A very minimalistic chat modification addon.
 ## Author: Xruptor
-## Version: 2.0
+## Version: 2.1
 ## SavedVariables: XCHT_DB

 xanChat.lua