All pastes #594034 Raw Edit

Anonymous

public text v1 · immutable
#594034 ·published 2007-06-28 18:25 UTC
rendered paste body
on *:TEXT:!av-on*:#: {
  if ( $nick(#,$nick,vr) ) {
    notice $nick You must be at least halfop to do this
  }
  else {
    set %avchannel $addtok(%avchannel,$chan,44)
    set %avoice $addtok(%avoice,$chan,44)
    msg $chan 4auto voice is now on for $chan
  }
}
on *:TEXT:!av-off*:#: {
  if ( $nick(#,$nick,vr) ) {
    notice $nick You must be at least halfop to do this
  }
  else {
    set %avchannel $remtok(%avchannel,$chan,1,44)
    set %avoice $remtok(%avoice,$chan,1,44)
    msg $chan 4auto voice is now off for $chan
  }
}
on *:JOIN:%avchannel:{ 
  if (%avoice) { 
    .timer 1 1  $nick Welcome $nick 
    .timer 1 2  $nick checking status.. 
    .timer 1 5 statuscheck $nick $chan
  }  
} 
alias statuscheck { 
  if $nick($2,$1,a,ohv) { 
    notice $1 Voicing Now... 
    mode $2 +v $1 
  }
  else {
    .notice $1 Voicing Cancelled...
  }
}