All pastes #246154 Raw Edit

Miscellany

public text v1 · immutable
#246154 ·published 2006-11-11 22:53 UTC
rendered paste body
on $*:text:/^[!@.](set(pcw|world)?)/Si:#: { 
  if (%pest. [ $+ [ $chan ] ] == off) { halt } 
  elseif ($nick isop $chan || $nick ishop $chan) && ($2 isnum 2-132 ) {  
    set %world. [ $+ [ $chan ] ] $2 
    set %ht. [ $+ [ $chan ] ] $ctime
   set %nick. [ $+ [ $chan ] ] $nick 
   notice $nick The PCW has been set to: $2    
   msg $chan 4The current 7pc world 4has changed1, 4to get the new 7world1, type 7!world 1or 7!pcw
    else { halt }  
  } 
}
on $*:TEXT:/^[!@.](world|pcw)/Si:#: { 
  if (%pest == on) && (%world. [ $+ [ $chan ] ] != $null) { 
    notice $nick 4The current 7Pest Control World 4is7 %world. [ $+ [ $chan ] ] [4Set by7 %nick. [ $+ [ $chan ] ] $+ , $duration($calc( $ctime - %ht. [ $+ [ $chan ] ] )) ago] 
  } 
}
on *:TEXT:!pcoff:#: { if ( $nick isop $chan ) { msg $chan $nick has disabled my scripts. } 
set %pest off } } 
on *:TEXT:!pcon:#: { if ( $nick isop $chan ) { msg $chan $nick has enabled my scripts. } 
set %pest on } }