All pastes #414277 Raw Edit

catsrule113

public text v1 · immutable
#414277 ·published 2007-03-28 22:51 UTC
rendered paste body
on *: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.
 }
}