From f4db399d08e44dbef1e9dfddad45daec65226364 Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 29 Oct 2019 07:24:18 +0100 Subject: [PATCH] chat: try to match extended clinks first --- modules/chat.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/chat.lua b/modules/chat.lua index 958a5ce8..ef2ad6fd 100644 --- a/modules/chat.lua +++ b/modules/chat.lua @@ -622,8 +622,8 @@ pfUI:RegisterModule("chat", "vanilla:tbc", function () _G["ChatFrame"..i].AddMessage = function(frame, text, a1, a2, a3, a4, a5) if text then -- Remove prat CLINKs - text = gsub(text, "{CLINK:(%x+):([%d-]-:[%d-]-:[%d-]-:[%d-]-):([^}]-)}", "|c%1|Hitem:%2|h[%3]|h|r") -- vanilla text = gsub(text, "{CLINK:(%x+):([%d-]-:[%d-]-:[%d-]-:[%d-]-:[%d-]-:[%d-]-:[%d-]-:[%d-]-):([^}]-)}", "|c%1|Hitem:%2|h[%3]|h|r") -- tbc + text = gsub(text, "{CLINK:(%x+):([%d-]-:[%d-]-:[%d-]-:[%d-]-):([^}]-)}", "|c%1|Hitem:%2|h[%3]|h|r") -- vanilla -- Remove chatter CLINKs text = gsub(text, "{CLINK:item:(%x+):([%d-]-:[%d-]-:[%d-]-:[%d-]-:[%d-]-:[%d-]-:[%d-]-:[%d-]-):([^}]-)}", "|c%1|Hitem:%2|h[%3]|h|r")