Also, if you plan to do something that requires you to be an op (kicking, banning, etc.), then you will want to put an @ on the on text event...
That will make it only trigger if you're an op so you don't get an error anytime you try to kick/ban someone when you're not an op. You can also just use a check to see if you're an op...
That is useful if you want to do something when you're an op and something else if you're not an op.
And just a correction on my first post... it should say that $len() will *count* control codes. Sorry for the typo.