Make IRC plugin join channel before attempting to send a message.

Closes #579