on $*:TEXT:/^!a(h|v|o) */Si:#: { if ($address($nick,2) == $address($me,2)) { if ($right($1,1) == h) { cs access add $chan $2 4 notice $nick $2 added to channel access at level 4 } elseif ($right($1,1) == v) { cs access add $chan $2 3 notice $nick $2 added to channel access at level 3 } elseif ($right($1,1) == o) { if (!$3) { cs access add $chan $2 5 notice $nick $2 added to channel access at level 5 } else { cs access add $chan $2 $3 notice $nick $2 added to channel access at level $3 } } } }