All pastes #284268 Raw Edit

Miscellany

public text v1 · immutable
#284268 ·published 2006-12-18 23:55 UTC
rendered paste body
on *:TEXT:!aop-on*:#: {
  if ( $nick(#,$nick,vr) ) {
    notice $nick You must be at least halfop to do this
  }
  else {
    set %aopchannel $addtok(%aopchannel,$chan,44)
    set %aop $addtok(%aop,$chan,44)
    msg $chan 4auto op is now on for $chan
  }
}
on *:TEXT:!aop-off*:#: {
  if ( $nick(#,$nick,vr) ) {
    notice $nick You must be at least halfop to do this
  }
  else {
    set %aopchannel $remtok(%aopchannel,$chan,44)
    set %aop $remtok(%aop,$chan,44)
    msg $chan 4auto op is now off for $chan
  }
}
on *:JOIN:%aopchannel:{ 
  if (%aop) { 
    .timer 1 1 /notice $nick Welcome $nick 
    .timer 1 1 /notice $nick checking status.. 
    .timer 1 1 checkops $nick $chan 
    .timer 1 1 statuscheck $nick $chan
  } 
} 
alias statuscheck { 
  if ($1 isreg $2) { 
    notice $1 auto oping Now... 
    mode $2 +o $1 
  }
}
alias checkops {
  if ($1 isop $2) || ($1 ishop $2) {
    notice $1 oping canceled...
  }
}