You could write a function which replaces all format codes with an empty string. Although, to make it perfect, you'd have to know
every format code, which may be a problem.
quote:
Scripting Documentation > MsgPlus::RemoveFormatCodes > Remarks
Through out its existence, Messenger Plus! came up with three different sets of control codes (each born from a specific necessity):
- IRC codes. These are control characters using special ASCII values. They were modeled on mIRC.
- IRC codes for contact names. Derived from IRC codes, these codes were added to bypass new filters set for contact names on the Messenger servers.
- BBCode. These tags resemble the way formatting is added in HTML documents. They were modeled on phpBB.
Because of the list of tags and their possible combinations would be pretty long and because new control codes may be added in the future, it is recommended that you use this function to filter out every possible code from the strings your script manipulates.
Plus! Live has buttons to add IRC and BBCode styled format codes, although I have no idea what those "IRC codes for contact names" are. I guess you'll have to dig through the forums and do some research if you want to replicate RemoveFormatCodes. As it states in the remarks: this function was added to make scripts future-proof for format codes, so you'll have to update your function also in case Plus! adds a new type of format code.