All pastes #761413 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-11-04 21:14 UTC
rendered paste body
on *$:TEXT:/^[!.]onjoinv(oice)?/Si:#: { 
  if ($nick ishop $chan) { 
    if ($2 == on) { set %avjoinall [ $+ [ $chan ] ] ON | msg $chan 7All users that join4 $chan 7will now be voiced. } 
    if ($2 == off) { %avjoinall [ $+ [ $chan ] ] OFF | msg $chan 7Autovoice on join for all has been deactivated. } 
    if ($2 == $null) { msg $chan 7Autovoice on join for all is now: 4 %avjoinall [ $+ [ $chan ] ] } 
  } 
  else { notice $nick 4Only ops can do that! } 
} 
on 1:JOIN:#: { 
  if (%avjoinall [ $+ [ $chan ] ] == ON) { mode $chan +v $nick } 
}