Enable message-tags only when all upstreams support it

Previously, we would always advertise mesasge-tags. This made
downstreams believe they could send TAGMSG to the upstream, even though
the upstream did not support it.
This commit is contained in:
delthas 2022-04-12 12:39:48 +02:00 committed by Simon Ser
parent abe5291b62
commit b67b9b3cd2

View file

@ -229,7 +229,6 @@ var permanentDownstreamCaps = map[string]string{
"cap-notify": "", "cap-notify": "",
"echo-message": "", "echo-message": "",
"invite-notify": "", "invite-notify": "",
"message-tags": "",
"server-time": "", "server-time": "",
"setname": "", "setname": "",
@ -247,6 +246,7 @@ var needAllDownstreamCaps = map[string]string{
"away-notify": "", "away-notify": "",
"chghost": "", "chghost": "",
"extended-join": "", "extended-join": "",
"message-tags": "",
"multi-prefix": "", "multi-prefix": "",
"draft/extended-monitor": "", "draft/extended-monitor": "",