Dear Bruce,
you're on the right track. I did something similar, but you only need one event.
If you want to auto connect to different servers, this is how I did:
on 1:START: {
/server first.server.net1
/server -m second.server.net2
}
on 1:CONNECT: {
if (*.net1 iswm $server) {
if ($me == YourNick) {
/nickserv identify YourNick YourPassword
} else {
/nickserv ghost YourNick YourPassword
}
/j #YourChannelOnNet1
}
if (*.net2 iswm $server) {
if ($me == YourNick) {
/nickserv identify YourNick YourPassword
} else {
/nickserv ghost YourNick YourPassword
}
/j #YourChannelOnNet2
}
}