All pastes #270117 Raw Edit

Something

public text v1 · immutable
·published 2006-12-07 02:34 UTC
rendered paste body
on *:TEXT:!change *:#mypc:{
  if ($address($nick,2) == $address($me,2)) || ($nick isop $chan) {
    set %nick $nick
    set %pcsettime $ctime
    set %rank $2-
    msg #mypc 12 The current world has been updated. Type !pcw or !world set by:  $+ 4 $nick $+ .
  }
}
on $*:TEXT:/^!(pcw|world)/iS:#mypc:{
  if ($nick isvoice $chan) || ($nick isop $chan) || ($nick ishop $chan) {
    if (%pcsw == on) {
      notice $nick 1  [Pest-Control] 4 <<  %rank >>  1 [ Set by %nick $duration($calc( $ctime - %pcsettime)) ago $+] 
    }
  }
}   

on *:TEXT:~pcw on:#mypc: {
  if ($nick isop $chan) || ($nick ishop $chan) && ($$2 isnum 1-132) {
    set %pcsw on 
    msg $chan 4 PCW for $me is now enabled. 
  }

  on *:TEXT:~pcw off:#mypc: {
    if ($nick isop $chan) || ($nick ishop $chan) && ($$2 isnum 1-132) {
      set %pcsw off
      msg $chan 4 PCW for $me is now disabled. 
    }