OK, I see your point with "+m-a $me" ...my code would fail in that case.
However, using "+ko $me someone" would not cause it to fail, and here's why:
The code looks at the first character of the set of modes that are set, in this case +
then it removes that character from the modes, now making the string of mode "ko"
The nicks that were entered are tokenized using $chr(32), creating
$1 = $me
$2 = someone

then it grabs the position of the "o" from the mode string, which returns 2. This is appended to the $ character, creating the identifier $2.
Next it checks if $2 == $me, which in this case it doesn't, so none of the tracking variables are altered.