If I remeber well there is a "Connect on startup" switch in mIRC. I think it's located in the options: CTRL+O>Conect>Options