I made such addon (didn't distribute) for testing purposes. All it does is simple scan /who for 1-10, 11-20, 21-30, etc and invite everyone that isn't guilded. Works wonders, a bit too good imo
I can confirm it's not protected and perhaps it is a good idea to make it protected.
Oh, and don't ask me for it, I'm not giving out the addon.