From 4b9bfd73bcfb6c8a3d39bbda51a7eec8090ab3a0 Mon Sep 17 00:00:00 2001 From: urnati Date: Sun, 28 Dec 2025 22:15:43 -0500 Subject: [PATCH] - Real revert --- TitanXP/TitanXP.lua | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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 -- 1.7.9.5