Originally Posted by Ayantir
If I remember well, the character pipe is escaped when you send a message.
SendChatMessage(ANY_CHANNEL, "|H1:custom:data1:...:dataN|htext|h")
Will result in a EVENT_CHAT_MESSAGE with text = ||H1:custom:data1:...:dataN||htext||h
The double pipe is then hidden by the TextBuffer control itself.
You can check it by sending the data in saved vars.
|
So you suggesting that the StartMessage(message, channel, target) function and the like escape the | character before displaying?
That's interesting and unfortunate. (And also explains why I never see colored text in zone)
It prevents neat little things like an event calendar addon where one could send a link with event details through a whisper and then the recipient right clicking on the link to save it on his side.
Or when you want to invite a friend to a group but you don't have crown, you could like "Hey please invite [@Drummerx04] to the group" and you don't have to go through the stupid crown passing back and forth game.