chat: introducing the CLINK Shield

convert prat CLINKs into regular itemlinks.
http://www.wowhead.com/item=15466
This commit is contained in:
shagu
2018-04-22 15:24:18 +02:00
parent f1f411302b
commit 5e5596821a
+5
View File
@@ -793,6 +793,11 @@ pfUI:RegisterModule("chat", function ()
_G["ChatFrame"..i].AddMessage = function (frame, text, a1, a2, a3, a4, a5)
if text then
-- Remove prat's CLINK itemlinks.
text = gsub(text, '%{CLINK:(%x%x%x%x%x%x%x%x):(%d*):(%d*):(%d*):(%d*):(.-)%}', function(color, id, enchant, suffix, uuid, name)
return format('|c%s|Hitem:%s:%s:%s:%s|h[%s]|h|r', color, id, enchant, suffix, uuid, name)
end)
-- detect urls
if C.chat.text.detecturl == "1" then
local URLPattern = pfUI.chat.URLPattern