All pastes #272960 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-12-09 13:14 UTC
rendered paste body
on *:TEXT:*!autov on*:#: { 
  if (($nick isop $chan || $nick ishop $chan)) { 
      set %autovoice. $+ $chan on 
      msg $chan [ 4,1 Auto Voice is now ON for 9 $chan ] 
    } 
   Else { notice $nick you can't use this command }
}
on *:TEXT:*!autov off*:#: { 
  if (($nick isop $chan || $nick ishop $chan)) { 
      set %autovoice. $+ $chan off 
      msg $chan [ 12,15 Auto Voice is now OFF for 4 $chan ] 
    } 
  Else { notice $nick you can't use this command }
}
on *:JOIN:#: { 
  if (%autovoice. [ $+ [ $chan ] ] == on) { 
      mode $chan +v $nick
      } 
  else { 
     if (%autovoice. [ $+ [ $chan ] ] == off) { halt } 
    }
 }