I'm trying to programmatically send IRC messages with the PRIVMSG
command. IRC uses CRLF
to delimit separate commands, so "enter" is the end of each command.
I want to send a single message with line breaks in it so that the recipient (a human IRC user) sees a response with breaks. Is this possible? Can I use some other line break character? Should I just split the message at linebreaks and send them as multiple messages?
To insert a line break in a message: On the web client and Desktop App, press Enter or Shift+Enter if you are writing the message in rich-text mode. Otherwise, press Shift+Enter . On the mobile client, tap Enter .
Using a <br> tag will give you a new line. Or you can use <p></p> tags to break your content into paragraphs. The raw parameter is markdown, so you need two newlines to make a new paragraph. You may need both carriage return and line feed.
IRC protocol does not allow CR and/or LF in its message, except for CRLF at the end. See RFC 1459 for detail.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With