Quantcast

- Real revert

urnati [12-29-25 - 03:15]
- Real revert
Filename
TitanXP/TitanXP.lua
diff --git a/TitanXP/TitanXP.lua b/TitanXP/TitanXP.lua
index 6b84ab0..e48ceb5 100644
--- a/TitanXP/TitanXP.lua
+++ b/TitanXP/TitanXP.lua
@@ -46,7 +46,18 @@ local txp = {

 --****** overload the 'time played' text to Chat - if XP requested the API call
 local requesting
-
+local orig_ChatFrame_DisplayTimePlayed = ChatFrame_DisplayTimePlayed
+-- Override the output to Chat
+ChatFrame_DisplayTimePlayed = function(...)
+	if requesting then
+		-- XP requested time played, do not spam Chat
+		requesting = false
+	else
+		-- XP did not request time played so output
+		orig_ChatFrame_DisplayTimePlayed(...)
+	end
+end
+--[===[
 -- Save orignal output to Chat
 -- somewhere in 11.* (The World Within) this changed
 local orig_ChatFrame_DisplayTimePlayed = ChatFrame_DisplayTimePlayed
@@ -75,7 +86,7 @@ if Titan_Global.switch.chat_class then
 else
 	ChatFrame_DisplayTimePlayed = TimePlayed(...)
 end
-
+--]===]
 -- ******************************** Functions *******************************

 ---local Set icon based on faction