17

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?

4

1 に答える 1

28

IRC プロトコルでは、末尾の CRLF を除いて、メッセージに CR および/または LF を使用できません。詳細については、 RFC 1459を参照してください。

于 2012-12-16T04:36:07.680 に答える