Fix sending messages to protected irc channels

Also fixes a problem where the plugin wasnt exiting when it failed to have
any joinable channels due to a non kicked error.

Fixes #1030
There are two other places where output.Join() is called, do we know if those are using the right spelling of the channel names for protected channels?