catsrule113
public text v1 · immutableon *:TEXT:?world:#: {
if (%cmd [ $+ [ $chan ] ] == off) { halt }
notice $nick %pc [ $+ [ $chan ] ]
}
on *:TEXT:!cmd &:#: {
if ($nick !isop $chan) { halt }
if ($2 == on) {
unset %cmd [ $+ [ $chan ] ]
msg $chan 11,13 All commands are now on for $chan $+ . To turn commands off type !cmd off
}
elseif ($2 == off) {
set %cmd [ $+ [ $chan ] ] off
msg $chan 11,13 All commands are now off for $chan $+ . To turn commands on type !cmd on
}
else {
.notice $nick Unknown command.
}
}