on *:TEXT:!autovoice*:#: {
if (!$2) {
if (%autovoice. [ $+ [ $chan ] ] == on) {
set %autovoice on && notice $nick Autovoice is on in $+($chan,.)
}
else {
set %autovoice off && notice $nick Autovoice is off in $+($chan,.)
}
}
/msg $nick Heej kontebonker, welkom in $chan je hebt voice gekregen
else {
if ($nick !isop $chan) {
notice $nick You must be an op to change autovoice settings.
}
else {
if ($2 == on) {
set %autovoice. $+ $chan on
notice $nick [ Auto Voice is now ON ]
}
elseif ($2 == off) {
set %autovoice. $+ $chan off
notice $nick [ Auto Voice is now OFF ]
}
else {
notice $nick Unknown command.
}
}
}
}
on *:JOIN:#: {
if (%autovoice. [ $+ [ $chan ] ] == on) {
mode $chan +v $nick
}
}