mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 11:10:00 +00:00
chat: introducing the CLINK Shield
convert prat CLINKs into regular itemlinks. http://www.wowhead.com/item=15466
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user