Use on INPUT instead, if you want to do this in your own mIRC.