ok for example, say "+m-a $me" is set. it will increase %protects when it should increase %deprotects. a similar thing occurs with -m+a in case the server sends them in that order. if someone sets a key equal to your nick but ops someone else with "+ko $me someone" it'll be inaccurate too

however unlikely you may think these scenarios are, imo it's always best to make your code as supportive as possible (within reason of course)

btw i didnt need to study your code to see it wasn't going to be totally accurate.. the fact that you didn't use $chanmodes anywhere makes it immediately obvious :P


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde