#Undernet off
on *:connect:{ if (undernet isin $server) Undernet.id }
#Undernet end

alias Undernet.did-h.all { did -h auto 12,22,32,42,52,62,201 | did -v auto $1- }

alias Undernet.id { var %Undernet.loop.n 0
  while (%Undernet.loop.n < 10) { inc %Undernet.loop.n
    if ($me == %Undernet.nick [ $+ [ %Undernet.loop.n ] ]) { .msg x@channels.undernet.org login %Undernet.nick [ $+ [ %Undernet.loop.n ] ] %Undernet.pass [ $+ [ %Undernet.loop.n ] ] }
  }
}
