From 67f7d9aa3f16496a439dff194731983aa55819c8 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 27 Nov 2023 13:49:40 +0100 Subject: [PATCH] Add support for draft/no-implicit-names Same as the soju extension. --- doc/ext/no-implicit-names.md | 2 +- downstream.go | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/ext/no-implicit-names.md b/doc/ext/no-implicit-names.md index 4c09ffa..7a235cc 100644 --- a/doc/ext/no-implicit-names.md +++ b/doc/ext/no-implicit-names.md @@ -1,6 +1,6 @@ # no-implicit-names -This is a work-in-progress specification. +This specification has been superseded by the IRC `draft/no-implicit-names` extension. ## Description diff --git a/downstream.go b/downstream.go index f383212..57bac33 100644 --- a/downstream.go +++ b/downstream.go @@ -227,8 +227,9 @@ var permanentDownstreamCaps = map[string]string{ "server-time": "", "setname": "", - "draft/pre-away": "", - "draft/read-marker": "", + "draft/pre-away": "", + "draft/read-marker": "", + "draft/no-implicit-names": "", "soju.im/account-required": "", "soju.im/bouncer-networks": "", @@ -3423,7 +3424,7 @@ func forwardChannel(ctx context.Context, dc *downstreamConn, ch *upstreamChannel } } - if !dc.caps.IsEnabled("soju.im/no-implicit-names") { + if !dc.caps.IsEnabled("soju.im/no-implicit-names") && !dc.caps.IsEnabled("draft/no-implicit-names") { sendNames(ctx, dc, ch) } }