or
Code:
on *:text:!*:#: {
  if ($1 == !setrules && ($nick isop $chan || $nick ishop $chan)) {
    if (!$2) { .notice $nick Error: You need to include the rules/events with this command. }
    else {
      set %rules $2-
      .notice $nick Event set to: $2-
    }
  }
  if ($1 == !setevent && ($nick isop $chan || $nick ishop $chan)) {
    if (!$2) { .notice $nick Error: You need to include the event with this command. }
    else {
      set %event $2-
      .notice $nick Event set to: $2-
    }
  }
  else {
    if ($1 == !rules) {
      msg $chan The rules in this channel are: $2-
    }
    if ($1 == !event)
    msg $chan Today's event is: $2-
  }
}
  


learn learn learn