Skip to content

Commit 515fdab

Browse files
authored
capability-negotiation: clarify CAP names cannot start with hyphen (#519)
1 parent fc9e277 commit 515fdab

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

extensions/capability-negotiation.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,9 +440,10 @@ listed above.
440440

441441
The full capability name MUST be treated as an opaque identifier.
442442

443-
Capability names are case-sensitive. Typical capability names SHOULD be lowercase, and use
444-
hyphens (`-`) to separate words. For example: `echo-message`, `extended-join`,
445-
`invite-notify`, `draft/labeled-response`, `message-tags`.
443+
Capability names are case-sensitive, and MUST NOT start with a hyphen (`-`). Typical
444+
capability names SHOULD be lowercase, and use hyphens to separate words. For example:
445+
`echo-message`, `extended-join`, `invite-notify`, `draft/labeled-response`,
446+
`message-tags`.
446447

447448
There are different types of capability names, which are described below.
448449

@@ -542,4 +543,6 @@ appropriate features.
542543
Previous versions of this spec did not mention how servers handle clients attempting to downgrade
543544
their CAP LS version. It has been clarified that clients MAY NOT downgrade this.
544545

545-
Clarify that multiline LS and LIST replies must only be used for CAP 302
546+
Clarified that multiline LS and LIST replies must only be used for CAP 302.
547+
548+
Previous versions of this spec did not state that capability names MUST NOT start with a hyphen.

0 commit comments

Comments
 (0)