chat: fix clink messages for tbc

This commit is contained in:
shagu
2019-09-25 14:45:47 +02:00
parent 02c1863ab4
commit ef3ec0bb9c
+3 -1
View File
@@ -623,7 +623,9 @@ pfUI:RegisterModule("chat", "vanilla:tbc", function ()
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)
local itemname
for id, name in pairs({strsplit(":", name)}) do itemname = name end
return format('|c%s|Hitem:%s:%s:%s:%s|h[%s]|h|r', color, id, enchant, suffix, uuid, itemname)
end)
-- detect urls