All pastes #759166 Raw Edit

Untitled

public text v1 · immutable
·published 2007-11-02 22:10 UTC
rendered paste body
alias urza {
  set %urza $$1-
  .notice Ocean %urza
}

alias -l getnext {
  var %a = Ocean Rajah Paws Toga_Party Zoi Aeros Decimate, %b = $numtok(%a,32), %c, %d
  if ($findtok(%a,$$1,1,32)) {
    %c = $v1
    if (%c !isnum %b) %d = $gettok(%a,$calc(%c + 1),32)
    return %d
  }
}

on *:notice:*:*:{
  var %bots = Ocean Rajah Paws Toga_Party Zoi Aeros Decimate
  if ($findtok(%bots,$nick,1,32)) && (%urza) {
    unset %urza
  }
}

raw 401:*:{
  var %bots = Ocean Rajah Paws Toga_Party Zoi Aeros Decimate
  if ($findtok(%bots,$2,1,32)) && (%urza) {
    if ($getnext($2)) .notice $v1 %urza
    else {
      echo 4 -at There do not appear to be any Urza bots online.
      unset %urza
    }
    haltdef
  }
}