【问题标题】:Insert line breaks into an IRC message在 IRC 消息中插入换行符
【发布时间】:2012-12-16 04:22:15
【问题描述】:

我正在尝试使用PRIVMSG 命令以编程方式发送 IRC 消息。 IRC 使用CRLF 来分隔单独的命令,因此“enter”是每个命令的结尾。

我想发送一条带有换行符的消息,以便收件人(人类 IRC 用户)看到带有换行符的响应。这可能吗?我可以使用其他换行符吗?我应该只在换行符处拆分消息并将它们作为多条消息发送吗?

【问题讨论】:

    标签: line-breaks irc


    【解决方案1】:

    IRC 协议不允许在其消息中使用 CR 和/或 LF,除了末尾的 CRLF。详情请见RFC 1459

    【讨论】:

    • 那么发送真正的多行消息的唯一方法是使用 CRLF?
    • 我认为这是不可能的。 tools.ietf.org/html/rfc1459#section-8recognition that any LF or CR anywhere in a message marks the end of that message (instead of requiring CR-LF);
    • IRC v3 包括 multiline message,截至 2021 年 8 月,它仍然是一个正在进行中的规范。
    猜你喜欢
    • 1970-01-01
    • 2015-09-24
    • 1970-01-01
    • 2019-06-12
    • 1970-01-01
    • 1970-01-01
    • 2016-04-10
    • 2019-02-08
    相关资源
    最近更新 更多