This should also check to make sure that `settings.CHANNELS.length > 0`, or the user won't join any channels and will be left at the Server tab.

I'm also pretty sure that the loop will fail if `settings.CHANNELS == null`, as `length` will be undefined.