All pastes #523726 Raw Edit

Stuff

public text v1 · immutable
#523726 ·published 2007-05-30 21:38 UTC
rendered paste body
on *:START: {
  server irc.quakenet.org 6667 -j #php.no,#php,#php.bottest,#debian,#ubuntu,#flash
  server -m irc.norbits.net 6667 -j #norbits
  server -m irc.dal.net 6667 -j #hjelp
  server -m irc.homelien.no 6667 -j #php.no,#php,#debian,#ubuntu,#linux,#flash,#actionscript
}


on *:NOTICE:*:?: {
  if ($nick == NickServ) {
    if ($strip($5) == IDENTIFY) { nickserv identify %nb.pass }
    if (($7 == recognized.) && ($network == Norbits)) { .msg nb !godkjenn }
  }
}

on *:TEXT:*:?: {
  if ($network == Norbits) {
    if (($nick == NB) && ($3 == ikke)) {
      nbregkey
    }
    if (($nick == NB) && ($4 == kø!)) {
      close -m NB 
      echo -a [3NorBits AJ] Awaiting approvement. Approx 20sec.
    }
  }
}
raw 307:*NB*registered*: { set %nb.nbapproved 1 | .timer 1 200 unset %nb.nbapproved }
on *:JOIN:#norbits: if (($network == Norbits) && ($nick == $me)) { close -m NB | unset %nb.nbapproved }
on *:INVITE:#norbits: if ($network == Norbits) { join $chan }
on *:INVITE:#pre: if ($network == Norbits) { join $chan }
on *:CONNECT: if ($network == Norbits) { nick %nb.nick | whois NB }

alias norbits-setup {
  if (!$4) { 
    echo -a [4NorBits AJ] Automatic NB joiner needs 3 arguments
    echo -a [4NorBits AJ] Useage: /norbits-setup <nick> <ns password> <user id> <irc key> 
    echo -a [4NorBits AJ] Example: /norbits-setup ziller myPass 19695 12321312312
  }
  else {
    set %nb.tmpKey $3 $4
    set %nb.pass $2
    set %nb.nick $1
    echo -a [3NorBits AJ] Norbits Auto Joiner is configured for nick $1
    if ($?!="Want to connect to NorBits now?") { norbits }
  }
}
alias norbits {
  if (!%nb.type) {
    if ($?!="Want NorBits to appear in a multiserver window?") { set %nb.type multi }
    else { set %nb.type active }
  }
  if (%nb.type == multi) { server -m irc.norbits.net:6667 }
  else { server irc.norbits.net:6667 }
}
alias nbregkey {
  if (%nb.nbapproved) { 
    .timer 1 35 .msg NB !verify %nb.tmpKey
    close -m NB
    echo -a [3NorBits AJ] Your IRC-key is beeing progressed. Please wait. Approx: 50sec
  }
  else {
    whois nb
    .timer 1 10 nbregkey
    close -m NB
  }
}