All pastes #604918 Raw Edit

Stuff

public text v1 · immutable
·published 2007-07-05 21:06 UTC
rendered paste body
alias -l c1 { return $+($chr(3),04,$1-,$chr(3)) }
alias -l c2 { return $+($chr(3),07,$1-,$chr(3)) }
on $*:TEXT:/^[!@](av|aov)/Si:#rips, #rips.staff:{
  if ($2 isop #rips || $2 ishop #rips) { notice $nick I have been forbidden to use this command on Operators and Half-Operators }
  elseif ($nick == zwill || $nick isop $chan || $nick ishop $chan) && ($2 ison #rips) {
    writeini av.ini -n $address($2,2) $address($2,2)
    mode #rips +v $2 
    notice $nick Successfully added $2- to the AutoVoice list
    notice $2 You have been Successfully added to $chan AutoVoice list
  }
}
on *:JOIN:#rips:{
  if ($read(av.ini,$address($nick,2))) { 
    mode $chan +v $nick 
  }
}
on $*:TEXT:/^[!@.]delao?v/Si:#rips:{
  if ($2 isop #rips || $2 ishop #rips) { notice $nick I have been forbidden to use this command on Operators and Half-Operators }
  elseif ($nick == zwill || $nick isop $chan || $nick ishop $chan) {
    remini av.ini $address($2,2)
    mode #rips -v $2
    notice $nick Successfully Deleted $2- from the AutoVoice list
  }  
}
on $*:TEXT:/^[!@]member/Si:#rips, #rips.staff:{
  if ($nick == zwill || $nick isop $chan || $nick ishop $chan) && ($2 ison #rips) {
    if ($read(av.txt,-n,$2)) { 
      mode #rips +v $2
      $iif($left($1,1) == @,.msg $chan,.notice $nick) $2 is Currently on the List.
    }
  }
}