All pastes #284313 Raw Edit

Something

public text v1 · immutable
#284313 ·published 2006-12-19 00:39 UTC
rendered paste body
on *:TEXT:!av-on*:#: {
  if ( $nick(#,$nick,vr) ) {
    msg $chan 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) ) {
    msg $chan 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 /notice $nick Welcome $nick to $chan
    .timer 1 1 statuscheck $nick $chan
  } 
}
alias statuscheck { 
  if $nick($2,$1,a,ohv) { 
    notice $3 Voicing Now... 
    mode $2 +v $1 
  }
  else {
    .notice $1 Voicing Cancelled...
  }
}