All pastes #336361 Raw Edit

Something

public text v1 · immutable
·published 2007-02-02 00:08 UTC
rendered paste body
on *:TEXT:!setpcw*:#: {
  if ($nick isop # || $nick ishop #) || ($2 isnum 2-138) {
    set %pcw.nick. [ $+ [ $chan ] ] $nick
    set %pcw.world. [ $+ [ $chan ] ] $2
    set %pcw.time. [ $+ [ $chan ] ] $ctime
    msg $chan 7The current pest control world has been changed in $chan ! - 4Type:15 !pc/!pcw
  }
  else {
    notice $nick Access denied.
  }
}
on $*:TEXT:/^[!@.](pc(w)?|world)/Si:#:{
  if (%pcw. [ $+ [ $chan ] ] == on)   {
    inc %pestcontrol.
    if (%pcw. [ $+ [ $chan ] ] == off) { HALT }
    elseif (%pcw.nick. [ $+ [ $chan ] ] != $null) {
      notice $nick Current Pest control World:4 %pcw.world. [ $+ [ $chan ] ] $+ , was set by:15 %pcw.nick. [ $+ [ $chan ] ] 11and was set: $duration($calc( $ctime - %pcw.time. [ $+ [ $chan ] ] )) ago ( %pestcontrol. )
    }
  }
}
on *:text:!pest on*:#:{
  if ($nick isop #) || ($nick ishop #) || ($nick = Gsus) {
    set %pcw. $+ $chan on
    msg $chan 3Mode: Pest Control "9on" in7 $chan
  }
}
on *:text:!pest off*:#:{
  if ($nick isop #) || ($nick ishop #) || ($nick = Gsus) {
    set %pcw. $+ $chan off
    msg $chan 3Mode: Pest Control "9off" in7 $chan
  }
}