on 1:Mode:#:{
  If (($nick == $me)) halt
  Else { 
    If ($1- == +i) mode $chan -i
    If (+l isin $1-) mode $chan -l
    If (+l isin $1) mode $chan +l
    If (-k isin +k) mode $chan +k
    If (+k isin $1) mode $chan -k
    if ($1 == +l) && ($2 < 25) /mode $chan +l 100
    if ($1 == +k) /mode $chan -k $2-
    if ($1 == -n) /mode $chan +n
    if ($1 == -t) /mode $chan +t
    if ($1 == +s) /mode $chan -s
    if ($1 == +m) /mode $chan -m
    /access # CLEAR
    /mode $chan -q-o $nick
  }
}
