rendered paste bodyon *:notice:!pestworld*:#:{
/illegalcheck $1-
set %pcwnickname [ $+ [ $chan ] ] $nick
if ($2- !isnum) { notice $nick 14Sorry you have to set a 4numerical14 world! | halt }
if (%pestcontroloffon [ $+ [ $chan ] ] == OFF) { HALT }
if ($chan == #bots) { HALT }
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 ] ]
}
}
}