All pastes #258777 Raw Edit

status lists

public text v1 · immutable
#258777 ·published 2006-11-26 20:54 UTC
rendered paste body
on *:text:!addo*:#:{ if ($nick == Manic) {
    if ($read(oplist.txt,w,$2)) { notice $nick Error - $2 is already in the file document "Op List" | halt
    }
    else {
      set %add.op $2
      write oplist.txt %add.op
      notice $nick You have successfully added %add.op to the "Op List".
} } }

on *:text:!addho*:#:{ if ($nick == Manic) {
    if ($read(hoplist.txt,w,$2)) { notice $nick Error - $2 is already in the file document "hop List" | halt
    }
    else {
      set %add.hop $2
      write oplist.txt %add.hop
      notice $nick You have successfully added %add.hop to the "hOp List".
} } }

on *:text:!addv*:#:{ if ($nick == Manic) {
    if ($read(voicelist.txt,w,$2)) { notice $nick Error - $2 is already in the file document "voice List" | halt
    }
    else {
      set %add.v $2
      write oplist.txt %add.v
      notice $nick You have successfully added %add.v to the "Voice List".
} } }

----
on *:text:!id*:#:{
  if ($2 == $null) { /notice $1 4Error - $nick - Specify a User to Identify | halt
  }
  else {
    if ($read(oplist.txt,w,$2)) {
      /notice $nick 12You,4 $2 12are identified as 4 an OP 12. | /mode #manic $1 +o
    }
    else {
      if ($read(hoplist.txt,w,$2)) {
        /notice $nick 12You,4 $2 12are identified as 4 an H-OP 12. | /mode #manic $1 +hop
      }
      else {
        if ($read(voicelist.txt,w,$2)) {
          /notice $nick 12You,4 $2 12are identified as 4 an Voiced member. 12. | /mode #manic $1 +v
          else {
            if (!$read(oplist.txt,w,$2)) && (!$read(hoplist.txt,w,$2)) && (!$read(voicelist.txt,w,$2)) {
              /notice $nick 12The nickname4 $2 12is 4not12 identified in any of the status lists.
} } } } } } } } } }