mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 12:10:01 +00:00
show timestamp in chat
This commit is contained in:
@@ -353,6 +353,13 @@ pfUI:RegisterModule("chat", function ()
|
||||
text = string.gsub(text, pattern, "["..channel.."]".."%1")
|
||||
end
|
||||
|
||||
-- show timestamp in chat
|
||||
if pfUI_config.chat.text.time == "1" then
|
||||
local left = string.sub(pfUI_config.chat.text.timebracket, 1, 1)
|
||||
local right = string.sub(pfUI_config.chat.text.timebracket, 2, 2)
|
||||
text = "|cff" .. pfUI_config.chat.text.timecolor .. left .. date(pfUI_config.chat.text.timeformat) .. right .. "|r" .. text
|
||||
end
|
||||
|
||||
HookAddMessage(frame, text, unpack(arg))
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user