If you know or suspect that the command will or might have bold, underlining, color, and/or reversed characters, here are two ways to handle it
on *:text:!example*:*:{
if ($istok($strip($2-,burc),test,32)) {
commands
}
else {
commands
}
}
That will strip the bold, underlining, reverse and colors from $2- before checking if test is a token in the line
The problem I have with doing it that way, is that you have to use the $strip(<text>,burc) each and every time. So if you have, for example 100 entries that need to be checked, then you have to add that each time
This next one is a one time running (each time you start/load the code, of course)
Just add that one line to any script or have it by itself. What it does, is it automatically strips the bold, underlining, reverse and colors from any text received.
With the second code, that I posted, what you currently have will work.
P.S: If you don't want all of those things removed, just don't use the appropriate letter for the item(s) you don't want removed.