on *:text:!off:#:{ set %commandoff } on *:text:!on:#:{ unset %commandoff } on *:text:!command:#:{ if (%commandoff) { HALT } /*bla bla bla (msg $chan ...)*/ }