View Single Post
02-14-14, 05:04 PM   #15
Aanson
A Flamescale Wyrmkin
Join Date: Aug 2009
Posts: 124
Originally Posted by pelf View Post
What if AddMessage is called like this:
Code:
:AddMessage("|cffff0000Hello.|r")
That hook won't know about that red. Also, what if the message has multiple colors in it? Which is "right"?
What's "right" is whatever colour has been chosen for any given message type. Eg for vanilla, guild chat is green, party blue, whisper pink etc etc. The function I've written provides a visual representation of what type of message has been received, so it doesn't matter if a message has 1 or 10 colours in it.

The only relevant colour is the one which has been chosen by the user to represent the chat type being displayed. Your example would default to Channel1 which would not be monitored.
__________________
__________________

Last edited by Aanson : 02-14-14 at 06:27 PM.
  Reply With Quote