If you're using mIRC you can just double click channel, highlight them all, and click remove. >.> Good snippet though.