Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify LINELEN ISUPPORT #189

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _includes/c2s_structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The specific parts of an IRC message are:

These message parts, and parameters themselves, are separated by one or more ASCII SPACE characters `(' ', 0x20)`.

Most IRC servers limit messages to 512 bytes in length, including the trailing `CR-LF` characters. Implementations which include [message tags](https://ircv3.net/specs/extensions/message-tags.html) need to allow additional bytes for the **tags** section of a message; clients must allow 8191 additional bytes and servers must allow 4096 additional bytes.
Most IRC servers limit messages to 512 bytes in length, including the trailing `CR-LF` characters. Servers may indicate support for greater message sizes via the {% isupport LINELEN %} `RPL_ISUPPORT` paremeter. Implementations which include [message tags](https://ircv3.net/specs/extensions/message-tags.html) need to allow additional bytes for the **tags** section of a message; clients must allow 8191 additional bytes and servers must allow 4096 additional bytes.

---

Expand Down
10 changes: 10 additions & 0 deletions _includes/modern-appendix.md
Original file line number Diff line number Diff line change
Expand Up @@ -1373,6 +1373,16 @@ Examples:

KICKLEN=307

{% isupportheader LINELEN %}

Format: LINELEN=<length>

The `LINELEN` parameter indicates the maximum size in bytes of IRC messages, excluding tags. In other words, `LINELEN` indicates the maximum size of this portion of the ABNF:

[':' <source> SPACE] <command> <parameters> <crlf>

The value MUST be specified and MUST be a positive integer. If `LINELEN` is not sent by the server, clients SHOULD assume that the server will truncate the messages larger than 512 bytes.

{% isupportheader MAXLIST %}

Format: MAXLIST=<modes>:<limit>{,<modes>:<limit>}
Expand Down