Interesting method, but you should really var %i, %n and %curr_nick, rather than setting them permanently..
Also, not all servers allow 10 modes at once, requiring the use of $modespl for correct function.