First off, put your primary nickname on notify (/notify my-primary-nickname)
then put all this in remotes: (it MUST be formatted as it is here)
Code:
on 1:CONNECT: {
  if ($me !isin my-primary-nickname) { return }
  msg x@channels.undernet.org login <nick> <password 
}
on *:unotify: {
  if ($nick != my-primary-nickname) { return }
  nick my-primary-nickname
  msg x@channels.undernet.org login <nick> <password
}

on 1:notice:AUTHENTICATION SUCCESSFUL as <nick>:*: {
  mode $me +x
  timerjc 1 20 join #channel1,#channel2
}

The connect logs in to X if you already have your nickname, and stops if you do not.

The unotify will get your nickname back when it pings out (or whatever the error message is), and will then login to X for you (since you cannot login to X until the main nickname that's already logged in is gone).

The last one will mask your IP address and rejoin the channels AFTER it's masked (don't use rejoin channels on connect if you want this, otherwise remove the join timer).

Last edited by CtrlAltDel; 23/06/04 07:04 PM.