From 6f10dc64fd77d0d1dac9f7d0b734df4d3cd3fc15 Mon Sep 17 00:00:00 2001 From: Christopher Tse Date: Wed, 4 Nov 2020 19:13:19 +1100 Subject: [PATCH] Restricted regex for raid icons to rt 1-8 --- BlizzChatIntegration.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BlizzChatIntegration.lua b/BlizzChatIntegration.lua index 836c9d7..c57dbb0 100644 --- a/BlizzChatIntegration.lua +++ b/BlizzChatIntegration.lua @@ -184,7 +184,7 @@ local function onChatMessage(_, event, message, sender, ...) local name = GetColoredName(event, message, sender, ...); messageInBubble = message:gsub("|c%w%w%w%w%w%w%w%w(.*)|r","%1"); --Replace colours messageInBubble = messageInBubble:gsub("|H.*|h%[(.*)%]|h", "%1") --Replace hyperlinks - messageInBubble, count = messageInBubble:gsub("{rt(%d)}","|TInterface\\TargetingFrame\\UI-RaidTargetingIcon_%1:0|t"); --Replace raid icons + messageInBubble, count = messageInBubble:gsub("{rt[1-8]}","|TInterface\\TargetingFrame\\UI-RaidTargetingIcon_%1:0|t"); --Replace raid icons messageToSender[messageInBubble] = name; --At the time of the chat event, the chat bubble hasn't been created yet. So we'll wait 0.01 seconds before looking for chat bubbles to skin. Timer:Start(); -- 1.7.9.5