Slight bug: you can pass in %31 as your nick which makes it '1' bypassing the 3char limit.
Thanks for picking that up. I would've never picked it.
you need to re-evaluate how you are handling characters. you aren't escaping and encoding properly. there is no point in just smashing the little bugs that people bring up because it will still leave other things open. time to re-eval.