Another choice you can make for your bot is go to:

1. mIRC options
2. IRC
3. Expand it to Messages
4. Strip codes from incoming messages
5. check Color and Other box.

This way you don't need the $strip() identifier.