on *:INPUT:#:{ if ($1 == .add) { cs access $chan add $2 $3 if ($3 == 0) { mode # -aoqhv $2 $2 $2 $2 $2 $2 | cs access # del $2 } if ($3 == 3) { mode # +v-aoqh $2 $2 $2 $2 $2 } if ($3 == 4) { mode # +h-vaqo $2 $2 $2 $2 $2 } if ($3 isnum 5-9) { mode # +o-aqhv $2 $2 $2 $2 $2 } if ($3 isnum 10-9998) { mode # +ao-hqv $2 $2 $2 $2 $2 } if ($3 == 9999) { mode # +qo-ahv $2 $2 $2 $2 $2 } } }