From 987c337709c3749d848f880298258cddb3959888 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Sun, 25 Oct 2026 11:39:39 -0500 Subject: [PATCH] Revert "Remove CLINK parsing" This reverts commit c03b74c3d1cfd8dc625e77b254fb32f72ee0e303. --- modules/chat.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/chat.lua b/modules/chat.lua index 897028a8..4bcf94ab 100644 --- a/modules/chat.lua +++ b/modules/chat.lua @@ -800,6 +800,16 @@ pfUI:RegisterModule("chat", function () -- that don't come from one (system text, addon output, history) local event, _, sender, _, _, _, _, _, _, _, _, _, guid = GetCurrentChatEvent() + -- Remove prat CLINKs + 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") + text = gsub(text, "{CLINK:enchant:(%x+):([%d-]-):([^}]-)}", "|c%1|Henchant:%2|h[%3]|h|r") + text = gsub(text, "{CLINK:spell:(%x+):([%d-]-):([^}]-)}", "|c%1|Hspell:%2|h[%3]|h|r") + text = gsub(text, "{CLINK:quest:(%x+):([%d-]-):([%d-]-):([^}]-)}", "|c%1|Hquest:%2:%3|h[%4]|h|r") + -- detect urls if C.chat.text.detecturl == "1" then text = pfUI.chat:HandleLink(text)