Untitled
public text v1 · immutableon $*:text:/^[!@.`]((s)?(triv)(ia)?|game|trivia(-on|-off)?/Si:#trivia: {
if ((@left($1-,2) == *s || $right($1-,3) == off) && %trivia == on) {
set %trivia off
msg $chan Trivia halted by $nick $+ .
}
elseif (%trivia == off) {
set %trivia on
msg $chan Trivia started by $nick $+ .
}
else {
notice $nick You can't do this!
}
}