Skip to content

Instantly share code, notes, and snippets.

@DanielOaks
Last active September 9, 2017 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanielOaks/865108092e69f4fb1c2a84c15e85ab7d to your computer and use it in GitHub Desktop.
Save DanielOaks/865108092e69f4fb1c2a84c15e85ab7d to your computer and use it in GitHub Desktop.
title layout work-in-progress updates copyrights
IRCv3.3 Client Capability Negotiation
spec
true
cap-3.1
cap-3.2
cap-notify
name period email
Daniel Oakley
2017
daniel@danieloaks.net

New in version 3.3

CAP LS 303

The LS subcommand now has the version 303, in addition to the existing version 302.

When using version 303, any CAP LS reply sent by the server will be proceeded by one or more RPL_ISUPPORT (005) numerics containing the current RPL_ISUPPORT tokens advertised by the server.

There is no modification to the CAP LS reply itself with version 303 – the only difference with this version is that the RPL_ISUPPORT numerics are now sent at the start of the response.

Numerics

This specification uses the RPL_ISUPPORT numeric:

No. Label Format
005 RPL_ISUPPORT <client> <1-13 tokens> :are supported by this server

Examples

Retrieving RPL_ISUPPORT tokens during connection registration:

C: CAP LS 303
S: 005 * TOPICLEN=307 STATUSMSG=~&@%+ NETWORK=IRCv3 PREFIX=(qaohv)~&@%+ :are supported by this server
S: 005 * NICKLEN=30 MODES=12 MAXCHANNELS=50 :are supported by this server
S: CAP * LS * :multi-prefix extended-join account-notify batch invite-notify tls isupport
S: CAP * LS :userhost-in-names sasl=EXTERNAL,DH-AES,DH-BLOWFISH,ECDSA-NIST256P-CHALLENGE,PLAIN
C: CAP REQ :multi-prefix extended-join account-notify batch invite-notify userhost-in-names
S: CAP ACK :multi-prefix extended-join account-notify batch invite-notify userhost-in-names
C: NICK test
C: USER test 0 * :test client

<registration continues>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment