You might want to try mIRC's /protect system, (/help /protect)
This will do what you're asking for


- Jason