Add support for draft/no-implicit-names

Same as the soju extension.
This commit is contained in:
Simon Ser 2023-11-27 13:49:40 +01:00
parent 47346b0f10
commit 67f7d9aa3f
2 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# no-implicit-names # no-implicit-names
This is a work-in-progress specification. This specification has been superseded by the IRC `draft/no-implicit-names` extension.
## Description ## Description

View File

@ -227,8 +227,9 @@ var permanentDownstreamCaps = map[string]string{
"server-time": "", "server-time": "",
"setname": "", "setname": "",
"draft/pre-away": "", "draft/pre-away": "",
"draft/read-marker": "", "draft/read-marker": "",
"draft/no-implicit-names": "",
"soju.im/account-required": "", "soju.im/account-required": "",
"soju.im/bouncer-networks": "", "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) sendNames(ctx, dc, ch)
} }
} }