show timestamp in chat

This commit is contained in:
shagu
2016-08-29 00:46:51 +02:00
parent 09d86acb1d
commit 7adbac5cfd
3 changed files with 51 additions and 2 deletions
+7
View File
@@ -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