Just to make things a little more interesting :P
i used some parts of the super simple system i use, ya shall all use it if you think that the actual presented code is worth something..
alias xlogin {
if ($network == Undernet) {
.msg x@channels.undernet.org login xplo tryme
}
}
on *:start:{
server Lidingo.SE.EU.Undernet.org
server -m irc.freenode.org
server -m irc.swiftirc.org
}
on *:disconnect:{ close -a }
on *:connect:{
mode $me +i
xlogin
.timer $+ $network 1 6 joinchannels
}
raw 396:*:{
.timerxlogin off
set -u5 %connectnick
nick xplo
}
raw 433:*:{
if (%connectnick) {
nick ixplo
}
}
alias joinchannels {
if ($network == Undernet) { .join -n #mSL,#Gatineau }
if ($network == Freenode) { .join -n ##mirc }
if ($network == SwiftIRC) {
.join -n #msl,#swiftirc,#irchelp
oper USER PASS
}
}
on *:invite:#:{ if ($nick == x) { join -n $chan } }
on *:notice:*is owned by someone else*:*: {
if ($nick == NickServ) {
.ns id IDENTIFY tryme
}
}
on *:notice:*is registered and protected*:*: {
if ($nick == NickServ) {
ns id tryme
}
}