This will not work on channels with more than 5-10 users. All public (popular) networks will disconnect you for flooding; either for sending too many commands too quickly, or for sending commands to too many different users too quickly. You require a timer to pull off a mass-invite effectively.
I recommend the use of /sline -r and $snick(#,1), btw.