Have look into these mIRC Scripts links and search about it click here