No need for that; mIRC's /ban automatically retrieves the nick's address when you specify a ban type (e.g 2).