I didn't try this combination, but there is usually a way to get through when you allow the bot to $- whatever someone types. That was just a for instance.
If I knew the correct exploit I wouldn't post it here. It's usually some combination of $decode and $eval but it could also be anything that forces a new line.
Keep in mind that every version of mirc doesn't evaluate the same.