Code:
ON *:TEXT:*:#: {
  if (!kick me isin $1- && $me isop #) {
    kick # $nick Your wish is my command - begoneskies.
  }
}
It's possible to do the same with a slightly smaller script but with this you can add other commands if you want to expand it later.