WoWInterface - View Single Post - Code optimization and issue with hyperlinks in chat
View Single Post
10-11-18, 07:35 PM   #2
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 105
I was able to come up with a shitty hack:

I switched

Lua Code:
  1. chatMessage = string.format('|cff'..RGBPercToHex(info.r, info.g, info.b)..'%s|r', chatMessage)


Lua Code:
  1. chatMessage = gsub(string.format('|cff'..RGBPercToHex(info.r, info.g, info.b)..'%s', chatMessage), '|h|r', '|h|r|cff'..RGBPercToHex(info.r, info.g, info.b))

which basically just looks for the return signature used by achievements, items, etc and replaces it with a hex open of our chat channel color
  Reply With Quote