I can't tell for sure if this is it, but try something like this:
Code:
on *:text:!*:#channel: {
 if ($nick isop $chan) {
  if ($$1 == !rules) { msg $chan bla bla }
  elseif ($$1 == !spell) { msg $chan bla bla }
  elseif ($$1 == !swear) { msg $chan bla bla }
  .
  .
 }
}
Put the rules in this same ON Text with the elseif syntax and erase the other ON Texts. Maybe it will work?