on *:INPUT:#: { 
  if (+q = $1) { /msg chanserv owner # $me }
  if (+a = $1) { /msg chanserv protect # $me }
  if (+o = $1) { /msg chanserv op # $me }  
  if (+h = $1) { /msg chanserv halfop # $me }
  if (+v = $1) { /msg chanserv voice # $me }
  if (-q = $1) { /msg chanserv deowner # $me }
  if (-a = $1) { /msg chanserv deprotect # $me }
  if (-o = $1) { /msg chanserv deop # $me }
  if (-h = $1) { /msg chanserv dehalfop # $me }
  if (-v = $1) { /msg chanserv devoice # $me }
  if (-b = $1) { /mode $chan -b $2- }
  if (+b = $1) { /mode $chan +b $2- }
  if (+m = $1) { /mode $chan +m }
  if (-m = $1) { /mode $chan -m }
  if (+Q = $1) { /mode $chan +Q }
  if (-Q = $1) { /mode $chan -Q }
  if (+R = $1) { /mode $chan +R }
  if (-R = $1) { /mode $chan -R }
  if (+i = $1) { /mode $chan +i }
  if (-i = $1) { /mode $chan -i }
  if (+T = $1) { /mode $me +T }
  if (+ie = $1) { /mode $chan +II $me $mask($ial($me,1),3) | mode $chan +ee $me $mask($ial($me,1),3) }
  if (-ie = $1) { /mode $chan -II $me $mask($ial($me,1),3) | mode $chan -ee $me $mask($ial($me,1),3) }
  if (+Bot = $1) { /mode $me +B }
  if (+antitake = $1) { /cs set # mlock -sipklzKLV+GCQTnrtf [10j#R2,10k#K10,40m#m2,10n#N15]:5 | /mode $chan +j 2:2 }
  if (hop = $1) { /hop }
  if (hopall = $1) { /hopall }
  if (+hh = $1) { /msg chanserv access $chan add $2- 4 | /msg chanserv halfop # $2- }
  if (+oo = $1) { /msg chanserv access $chan add $2- 5 | /msg chanserv op # $2- } 
  if (+aa = $1) { /msg chanserv access $chan add $2- 10 | /msg chanserv protect # $2- }
  if (+9999 = $1) { /msg chanserv access $chan add $2- 9999 | /msg chanserv protect # $2- }
  if ($1 = n) { if (+ !isin $2) { /nick $2 } if (+ isin $2) { /nick $me $+ $remove($2,+)}

    }
  }
