Fixed error message when writing in an unjoined channel