fixed class played time spamming chat
This commit is contained in:
+9
-1
@@ -3128,7 +3128,15 @@ end
|
||||
|
||||
hooksecurefunc("ChatFrame_DisplayTimePlayed", function()
|
||||
if (Details.played_class_time) then
|
||||
print(Details.GetPlayTimeOnClassString() .. " (/details playedclass)")
|
||||
C_Timer.After(0, function()
|
||||
local levelText = TIME_PLAYED_LEVEL and TIME_PLAYED_LEVEL:gsub("%%s", "") or ""
|
||||
for fontString in ChatFrame1.fontStringPool:EnumerateActive() do
|
||||
if (fontString:GetText() and fontString:GetText():find(levelText)) then
|
||||
print(Details.GetPlayTimeOnClassString() .. " (/details playedclass)")
|
||||
break
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user