Do note the message in PRIVMSG is the trailing part of the IRC command, which is required to start with a :, i.e. the format should be PRIVMSG #channel :message\r\n.
Do note the message in PRIVMSG is the trailing part of the IRC command, which is required to start with a :, i.e. the format should be PRIVMSG #channel :message\r\n.