on *:TEXT:!autosuggeston:#: {
if (%autosuggest [ $+ [ $chan ] ] == on) { .notice $nick The autosuggest script for $chan is already on }
if (%autosuggest [ $+ [ $chan ] ] == on) { halt }
if (($nick isop $chan) || ($nick ishop $chan) || ($nick == aturner44)) { set %autosuggest on }
{ notice aturner44 Suggestions are now on }
}
on *:TEXT:!autosuggestoff:#: {
if (%autosuggest [ $+ [ $chan ] ] == off) { .notice $nick The autosuggest script for $chan is already off }
if (%autosuggest [ $+ [ $chan ] ] == off) { halt }
if (($nick isop $chan) || ($nick ishop $chan) || ($nick == aturner44)) { set %autosuggest off }
{ notice aturner44 Suggestions are now off }
}
on *:TEXT:!onsuggest:#: {
if (%suggest [ $+ [ $chan ] ] == on) { .notice $nick The suggestion script for $chan is already on }
if (%suggest [ $+ [ $chan ] ] == on) { halt }
if (($nick isop $chan) || ($nick ishop $chan) || ($nick == aturner44)) { set %suggest on }
{ notice aturner44 Suggestions are now on }
}
on *:TEXT:!offsuggest:#: {
if (%suggest [ $+ [ $chan ] ] == off) { .notice $nick The autosuggest script for $chan is already off }
if (%suggest [ $+ [ $chan ] ] == off) { halt }
if (($nick isop $chan) || ($nick ishop $chan) || ($nick == aturner44)) { set %suggest off }
{ notice aturner44 Suggestions are now off }
}
on *:TEXT:!suggest *:#: {
if (%suggest == OFF) { HALT }
if ($chan == #bots) { HALT }
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 $nick has suggested $2-
if (%pcwtimer [ $+ [ $chan ] ] == on) {
timerpcw off
timerpcw 0 30 msg $chan The current pestcontrol world is $readini(world.ini,n,pc,$chan) world $readini(suggest.ini,n,sugest,$chan) has been suggested.
}
}
on *:TEXT:*!pestcontroloff*:#: {
if (%pestcontroloffon [ $+ [ $chan ] ] == off) { .notice $nick The pestcontrol script for $chan is already off }
if (%pestcontroloffon [ $+ [ $chan ] ] == off) { halt }
if (($nick isop $chan) || ($nick ishop $chan) || ($nick == aturner44)) { set %pestcontroloffon $+ $chan off }
{ .msg $chan The pestcontrol script for $chan is now off }
}
on *:TEXT:*!pestcontrolon*:#: {
if (%pestcontroloffon [ $+ [ $chan ] ] == on) { .notice $nick The pestcontrol script for $chan is already on }
if (%pestcontroloffon [ $+ [ $chan ] ] == on) { halt }
if (($nick isop $chan) || ($nick ishop $chan) || ($nick == aturner44)) { set %pestcontroloffon $+ $chan on }
{ .msg $chan The pestcontrol script for $chan is now on }
}
on $*:TEXT:/^([!@]setpcw|[!@]setworld)/Si:#:{
if (%pestcontroloffon [ $+ [ $chan ] ] == OFF) { HALT }
if ($chan == #bots) { HALT }
if ($nick isop $chan || $nick ishop $chan || $nick isvoice $chan || $nick == aturner44) {
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 The pc world has been updated by $nick
if (%pcwtimer [ $+ [ $chan ] ] == on) {
timerpcw off
timerpcw 0 30 msg $chan The current pestcontrol world is $readini(world.ini,n,pc,$chan) world $readini(suggest.ini,n,sugest,$chan) has been suggested.
}
}
}
on *:TEXT:!show*:#: {
if ($nick isop $chan || $nick == aturner44) {
if ($2 == ON) { set %pcwtimer [ $+ [ $chan ] ] on | timerpcw 0 30 msg $chan The current pestcontrol world is $readini(world.ini,n,pc,$chan) world $readini(suggest.ini,n,sugest,$chan) has been suggested. | msg $chan The pcw timer is now enabled. }
if ($2 == OFF) { set %pcwtimer [ $+ [ $chan ] ] off | timerpcw off | msg $chan The pcw timer is now disabled. }
}
}
on $*:TEXT:/^([!@]pcw|[!@]world)/Si:#:{
if (%pestcontroloffon [ $+ [ $chan ] ] == OFF) { HALT }
if ($readini(world.ini,n,pcw,$chan)) {
notice $nick The current pestcontrol world is $readini(world.ini,n,pc,$chan) world $readini(suggest.ini,n,sugest,$chan) has been suggested.
}
}