In addition to qwerty's post, you may also want to have this little snipplet. It takes a mode change such as:

+oo-v+n KingTomato qwerty Jesper

and turnes it into something managable such as:

+o:KingTomato +o:qwerty -v:Jesper +n

Basically, you can then use $wildtok and look for your mode change like

Code:
var %modes = +o:KingTomato +o:qwerty -v:Jesper +n, %m = 1, %nicks
while ($wildtok(%modes, +o:*, %m, 32)) {
  %nicks = %nicks $gettok($ifmatch, 2, $asc(:))
  /inc %m
}


That would return %nicks = KingTomato qwerty

Code:
alias parsemode {
  /set -u0 %param 2
  /set -u0 %m 1
  while (%m <= $len($gettok($1, 1, 32))) {
    /set -u0 %chr $mid($gettok($1, 1, 32), %m, 1)
    if (%chr isin +-) { /set -u0 %mod %chr }
    else {
      if ((%chr isincs $remove($gettok($chanmodes,1-3,44),$chr(44))) || (%chr isincs qaohv)) {
        /set -u0 %modes $addtok(%modes, $+(%mod,%chr,:,$gettok($1, %param, 32)), 32)
        /inc -u0 %param
      }
      else { /set -u0 %modes $addtok(%modes, $+(%mod,%chr), 32) }
    }
    /inc -u0 %m
  }
  return %modes
}


-KingTomato