There is not much in these scripts anymore, as Pbot was created and protects an entire server from everything, not just mass joins. It saved my server from spam bots, I found these sort of snippets did nothing for me.
http://www.hawkee.com/scripts/14124640/