Code optimization and issue with hyperlinks in chat
Good evening everyone,
I'm playing around with how the chat appears. I've learned how incredibly complex the chat frame is, but I'm running into an issue I can't yet figure out.
The following code modifies how the chat appears to my liking. It works in all regards except one, if I link an item or achievement or someother hyperlink into chat, and have string(s) after the hyperlink, the color of the strings after the hyperlink turns white.
To put this in perspective, I would type "Wow look at this item: (shift click item). It's got amazing stats." and this would appear: Wow look at this item: [Sick DPS Weapon]. It's got amazing stats.
I can't for the life of me figure out why a hyperlink would cause an escape from the color sequence, or how I could get around it. If anyone has a suggestion on how to fix this, or sees a way to better optimize my code, please let me know: