Skip to content

Commit 21fbe43

Browse files
authored
capability-negotiation: Mention trailing space in capability lists (#530)
UnrealIRCd and InspIRCd emit them.
1 parent bdf2750 commit 21fbe43

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

extensions/capability-negotiation.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ Here is a handy table of the available `CAP` subcommands and which side sends th
149149
Some subcommands may include a space-separated list of capabilities as their final parameter.
150150
The list of capabilities MUST be parsed and processed from left to right and capabilities
151151
SHOULD only be sent once per command. If a capability with values is sent multiple times, the
152-
last one received takes priority.
152+
last one received takes priority. Clients MUST ignore any trailing whitespace.
153153

154154
If a client sends a subcommand which is not in the list above or otherwise issues an
155155
invalid command, then numeric `410` (`ERR_INVALIDCAPCMD`) should be sent. The first parameter
@@ -546,3 +546,6 @@ their CAP LS version. It has been clarified that clients MAY NOT downgrade this.
546546
Clarified that multiline LS and LIST replies must only be used for CAP 302.
547547

548548
Previous versions of this spec did not state that capability names MUST NOT start with a hyphen.
549+
550+
Previous versions of this spec did not state that space-separated capability lists may end with
551+
a trailing space.

0 commit comments

Comments
 (0)