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
Slightly weird to refer to the same value using two different spellings in three lines (`conf.Channels` vs. `output.IrcOutputConfig.Channels`).