All pastes #617893 Raw Edit

Untitled

public text v1 · immutable
·published 2007-07-13 15:51 UTC
rendered paste body
on *:text:World changed to world*:#: {
  if ($nick isreg $chan) { halt }
  if ($2- !isnum) {
  notice |eletric|God|Bot| !pestworld $5
 }
}
on *:text:!suggest*:#: {
if ($2- !isnum) {
  notice |eletric|god|bot| !suggestion $2
 }
}
---------^^^That one on bamzooky^^^----------


on *:notice:!suggestion*:?: {
    writeini -n world.ini pcw $chan pcw
    $iif($2 != $null,writeini -n world.ini pc $chan $2,writeini -n world.ini pc $chan No world set)
    writeini -n world.ini time $chan $ctime
    .msg $chan 14The 4pc world14 has been updated by4 $nick 
    if (%pcwtimer [ $+ [ $chan ] ] == on) { 
      timerpcw off
      timerpcw 0 30 msg $chan 14[4W14orld]:4 $readini(world.ini,n,pc,$chan) 14[4S14uggested]:4 $readini(suggest.ini,n,sugest,$chan) 14[4S14et bye]:4 %pcwnickname [ $+ [ $chan ] ]
 }
}
on *:text:!pestworld*:?: {
  writeini -n suggest.ini suggest $chan suggest
  $iif($2 != $null,writeini -n suggest.ini sugest $chan $2,writeini -n suggest.ini sugest $chan No suggestions)
  .msg $chan 4 $nick 14has suggested $2- 
  if (%pcwtimer [ $+ [ $chan ] ] == on) {
    timerpcw off
    timerpcw 0 30 msg $chan 14The current 4pestcontrol14 world is4 $readini(world.ini,n,pc,$chan) 14world4 $readini(suggest.ini,n,sugest,$chan) 14has been suggested. 
  }
}