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.
|