the ultimate easiest is just to use:
/server irc.gg-center.net 6667 /name/password
it automatically logs you in without having to do any scripting, even on netsplits or timeouts, and mirc saves the connection info so the next time you fire up mirc it connects with that same string