gotta agree with the majority, mIRC has a built in function of this.
but still, you\'re on your way.
Off-Topic: http://www.hawkee.com/phpBB2/viewtopic.php?t=17732 =)