All pastes #707348 Raw Edit

Unnamed

public text v1 · immutable
#707348 ·published 2007-09-22 20:45 UTC
rendered paste body
on *:TEXT:!autovoice on*:#:{  
  if (nick isvoice $chan) || ($nick isreg $chan) halt {
    else {
      set %autovoice [ $+ [ $chan ] ] on 
      msg $chan 14Autovoicing is now enabled in12 $+($chan,!) 14I must be Halfop or higher for autovoicing to work!
    }
  }
}
on *:TEXT:!autovoice off*:#:{
  if (nick isvoice $chan) || ($nick isreg $chan) halt {
    else {  
      set %autovoice [ $+ [ $chan ] ] off
      msg $chan 14Autovoicing is now disabled in12 $+($chan,!) 
    }
  }
}
on *:JOIN:#: {
  if (%autovoice [ $+ [ $chan ] ] == on) { Halt }
  else { 
    if ($nick == $me) { 
    set %autovoice [ $+ [ $chan ] ] off }
    else {
      halt 
    } 
  }
}

on *:JOIN:#: {
  if (%autovoice [ $+ [ $chan ] ] == on) {
    if ($nick isreg $chan) {
      /mode $chan +v $nick
    }
  }
}