All pastes #476514 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-05-08 04:00 UTC
rendered paste body
;;;;;;NationIRC;;;;
alias allchans { cs search print name * }

alias NextS { msg HelpServ next }
alias ListS { msg HelpServ List }
alias CloseS { msg HelpServ close $1- }

on *:NOTICE:*:?:{
  if ($nick == HelpServ) {
    if ($1 == You) {
      set %sup.id $remove($6,ID#,:)
    }
    if ($2 == Nick) {
      set %sup.nick $3
    }
    if ($2 == Opened) {
      set %sup.wt $remove($remove($10-,$chr(41)),$chr(40),and,ago)
    }
    if ($2 == Message:) {
      if ($network == NationIRC) {
        msg #Support 1,0Welcome to 1Nation7IRC1 Support Channel, %sup.nick $+ . I am your assigned helper, $me $+ . Please ONLY talk in PM! (Approximate wait time: $+  %sup.wt $+ )
        q %sup.nick      
        msg %sup.nick What can I help you with today?
        as accountinfo %sup.nick
      }
    }
  }
on *:TEXT:*:#usercom: {
  if (($nick == OpServ) && (by == $4)) {
    if ($3 == #Support) { echo -tl @Help *Notice* $5 - $2 - $3 }
  }
}