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-
}
}
elseif ($1 == !rules) {
msg $chan The rules in this channel are: $2-
}
}
---
on *:text:!*:#: {
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-
}
}
elseif ($1 == !event) {
msg $chan Today's event is: $2-
}
}