rendered paste bodyalias c1 return 14 $+ $1-
alias c2 return 04 $+ $1-
on *:TEXT:/^[@!.](acc|add) */Si:#: {
if ($nick isin %admin) {
if (!$3) { //echo -a Please add an access level! }
else {
/cs access # add $2 $3
/notice $nick $c2($2) $c1(has successfully been added to) $c2(# $+ 's) $c1(access list at level) $c2($3 $+ .)
/msg $chan $c2($2) $c1(has successfully been added to) $c2(# $+ 's) $c1(access list at level) $c2($3 $+ .)
}
if ($3 isnum 3) {
/mode # +v $2
}
if ($3 isnum 4) {
/mode # +h $2
}
if ($3 isnum 5-9) {
/mode # +o $2
}
if ($3 isnum 10-9999) {
/mode # +ao $2 $2
}
else {
notice $nick Sorry, you can't add people to access!
}
}
}
on *:TEXT:/^[@!.](del(acc)?) */Si:#: {
if ($nick isin %admin) {
/cs access # del $2
/mode # -aohv $2 $2 $2 $2
/notice $nick $c2($2) $c1(has successfully been deleted from) $c2(# $+ 's) $c1(access list)
/msg $chan $c2($2) $c1(has successfully been deleted from) $c2(# $+ 's) $c1(access list)
}
}