IRCv3 Capabilities
ferrixd implements 32 negotiable capabilities. 29 of them are always advertised in CAP LS 302; the other three — soju.im/search, ferrix.chat/calls and ferrix.chat/e2ee — only when their feature is enabled (search is on by default whenever [persistence] is configured). sts is advertised as well when a policy is configured, but it is not negotiable and not counted. They are implemented against the IRCv3 specifications. Negotiation notes:
CAP REQis all-or-nothing: if any requested token is unknown, the entire request is NAK'd.cap-notifyclients are informed viaCAP NEW/CAP DELif the advertised set ever changes.saslcarries a value (sasl=PLAIN,EXTERNAL,SCRAM-SHA-256), and so doesstswhen[server].stsis configured: plaintext connections seests=port=<tls-port>, TLS connections seests=duration=<secs>[,preload].stscannot beREQed — it is advisory only.
The full set
| Capability | Spec status | What it gives the client |
|---|---|---|
sasl | ratified | authentication during registration; mechanisms PLAIN, EXTERNAL, SCRAM-SHA-256 — guide |
message-tags | ratified | send/receive message tags, incl. client-only +tags and TAGMSG |
server-time | ratified | time= tag (millisecond UTC) on all relayed messages — essential for history |
echo-message | ratified | your own messages echoed back with their final tags (msgid, time) |
account-tag | ratified | account= tag on messages from logged-in users |
away-notify | ratified | AWAY changes broadcast to common channels |
extended-join | ratified | JOIN carries account name and realname |
chghost | ratified | in-place user@host changes instead of quit/rejoin fakery |
setname | ratified | live realname changes via SETNAME |
multi-prefix | ratified | all prefixes in NAMES/WHO (@+nick) |
userhost-in-names | ratified | NAMES entries as full nick!user@host |
cap-notify | ratified | CAP NEW/DEL on capability changes |
invite-notify | ratified | channel ops see INVITEs issued by others |
batch | ratified | grouped message delivery (chathistory replay, netsplits) |
labeled-response | ratified | label= tag echoed on all responses to a labeled command — including the echo-message echo itself, and on the BATCH reference when the handler frames its own batch (CHATHISTORY). A command with no response gets a labeled ACK |
standard-replies | ratified | machine-readable FAIL/WARN/NOTE — codes ferrixd emits |
account-notify | ratified | login/logout of channel members broadcast as ACCOUNT |
extended-monitor | ratified | MONITOR watchers also receive AWAY/ACCOUNT/SETNAME/CHGHOST for monitored nicks (each gated on the matching cap) |
no-implicit-names | ratified | suppress the automatic NAMES reply on JOIN (explicit NAMES still answers) — faster joins for clients that don't need member lists |
sts | ratified | strict transport security policy ([server].sts config); advertised per connection, never REQable |
draft/chathistory | draft | server-side history replay — reference |
draft/metadata-2 | draft | key-value metadata on users and channels via METADATA, incl. SUB/UNSUB/SUBS subscriptions and push notifications when a subscribed key changes |
draft/multiline | draft | multi-line messages in a batch; the cap's value carries the limits (max-bytes=4096,max-lines=100), which are enforced (FAIL BATCH MULTILINE_MAX_LINES/MULTILINE_MAX_BYTES). Capable recipients receive a real batch; everyone else gets the lines as individual messages (the spec's fallback) |
draft/account-registration | draft | account self-registration via REGISTER / VERIFY; value before-connect,custom-account-name, plus email-required when [account_registration] verification is on |
draft/read-marker | draft | per-account read markers via MARKREAD, synced across a user's connections |
draft/event-playback | draft | CHATHISTORY also replays JOIN/PART/QUIT/NICK/KICK/TOPIC/MODE events |
draft/message-redaction | draft | delete sent messages from history via REDACT (author or channel op), federated over S2S |
draft/channel-rename | draft | rename channels in place via RENAME; non-supporting members get a PART/JOIN resync |
draft/pre-away | draft | set AWAY before registration completes (bouncers, multi-connection clients) |
draft/extended-isupport | draft | receive RPL_ISUPPORT during CAP negotiation, before RPL_WELCOME |
soju.im/search | vendor | server-side full-text message search via SEARCH — guide. Offered only when [persistence] is configured with search = true (the default); otherwise neither advertised nor grantable |
ferrix.chat/calls | vendor | 1:1 call signalling over TAGMSG plus CALL ICE for STUN/TURN — guide. Offered only with [calls] enabled = true |
ferrix.chat/e2ee | vendor (experimental) | end-to-end encryption key directory via KEYS — guide. Offered only with [e2ee] enabled = true |
Server features that are not capabilities
Some IRCv3 server features are advertised through ISUPPORT or user modes rather than CAP, so clients never REQ them:
| Feature | Advertised as | Notes |
|---|---|---|
| File uploads | ISUPPORT soju.im/FILEHOST=<url> | the HTTPS upload endpoint when [filehost] is enabled — guide |
| Bot mode | ISUPPORT BOT=B, umode +B | a user sets MODE <nick> +B to declare itself a bot; shown in WHOIS (RPL_WHOISBOT, 335), the WHO flags, and a bare @bot message tag on its messages (for message-tags clients). Synced across S2S links |
| UTF8ONLY | ISUPPORT UTF8ONLY | the wire protocol is UTF-8-validated at parse time, so non-UTF-8 content is never relayed |
| Network icon | ISUPPORT draft/ICON=<url> | set via [server].icon; a URL (ideally HTTPS, square) to the network's icon, with an optional {size} template |
| WEBIRC | WEBIRC command | trusted gateways ([[webirc]]) rewrite a client's apparent host/IP after a constant-time password check and a source-address allow-list |
| WebSockets | ws:// / wss:// listeners | ws_bind/wss_bind; negotiates the text.ircv3.net and binary.ircv3.net subprotocols, one IRC line per WebSocket message |
A note on tagged delivery
Tags are attached per recipient: each client receives exactly the tags its negotiated capability set entitles it to. A server-time-only client sees time=; a client with message-tags + account-tag also sees account= and msgid=; a tagless legacy client sees a bare classic line. No client ever pays (in bytes or parsing) for a capability it didn't ask for.
Example negotiation
» CAP LS 302
« :irc.example.org CAP * LS * :sasl=PLAIN,EXTERNAL,SCRAM-SHA-256 message-tags server-time echo-message account-tag away-notify extended-join chghost setname multi-prefix …
« :irc.example.org CAP * LS :… batch draft/chathistory standard-replies draft/metadata-2 labeled-response draft/multiline draft/account-registration account-notify
» CAP REQ :sasl server-time message-tags batch labeled-response
« :irc.example.org CAP * ACK :sasl server-time message-tags batch labeled-response
» AUTHENTICATE SCRAM-SHA-256
…
» CAP ENDCompatibility
Clients that negotiate nothing get a well-behaved RFC 1459 server — every modern capability-negotiated behavior is opt-in via CAP.
Draft specifications and ratification
Draft capabilities, ISUPPORT tokens and tags (draft/ prefix) follow their upstream specifications and are excluded from the stability promise. They are tracked systematically:
ci/ircv3-drafts.tomllists every draft ferrixd implements with its spec file in ircv3-specifications and the upstream commit it was last checked against. A unit test fails when adraft/capability is added without an entry.- A weekly workflow (
spec-watch) compares each pin with upstream and opens — or refreshes — one tracking issue when a spec changed, moved, or no longer uses itsdraft/name (a likely ratification).
When a draft is ratified:
- The ratified name is added to
cap::RATIFIED. For an alias window of one minor release ferrixd advertises both names inCAP LS, accepts either inCAP REQ(theACKechoes the name you asked for) and lists both inCAP LIST. Clients can switch at their own pace. - The changelog announces the new name and the release that drops the alias; the next minor release advertises only the ratified name.
- Server-to-server frames never carry capability names, so mixed-version networks are unaffected.
Live capability changes
Capabilities can appear or disappear while you are connected — a runtime switch (ferrixd ctl set calls on, the admin dashboard) or a REHASH that enables or disables a feature. Connections that negotiated cap-notify (implied by CAP LS 302) receive CAP <nick> NEW :<caps> and CAP <nick> DEL :<caps>; a deleted capability is switched off for every connection that had it.