Realize I'm replying three years later and maybe no one will see this, but I've just set up a working private server and I'm interested in making /claim work for all new accounts.
I suspect that some of the code above relates to this endeavor, but it's completely over my head.
If anyone happens to still be active on this board and willing to explain it, that'd be very, very cool. In the mean time I will tinker in hopes of spontaneous enlightenment.