All pastes #620794 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-07-15 19:14 UTC
rendered paste body
on $*:TEXT:/^[!@.]stuff/Si:#:{
  if ($nick isop $chan) {
    if ($2 == on) {
      if (!%stopcw [ $+ [ $chan ] ]) { notice $nick CW is already turned on }
      else {
        unset %stopcw [ $+ [ $chan ] ]
        notice $nick CW is now on
      }
    }
    elseif ($2 == off) {
      if (%stopcw [ $+ [ $chan ] ]) { notice $nick CW is already turned off }
      else {
        set %stopcw [ $+ [ $chan ] ] true
        notice $nick CW is now off
      }
    }
  }
}