From e43882c995c6a9f0f6fdcbffe83890f98f2b2886 Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Fri, 13 Apr 2018 20:10:59 +1000 Subject: [PATCH] Make metadata cap values accurate --- irc/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/server.go b/irc/server.go index 28e0b01b..4e976882 100644 --- a/irc/server.go +++ b/irc/server.go @@ -836,7 +836,7 @@ func (server *Server) applyConfig(config *Config, initial bool) error { server.languages = lm // Metadata - CapValues.Set(caps.Metadata, "maxsub=10") + CapValues.Set(caps.Metadata, fmt.Sprintf("maxkey=%d,maxsub=%d", server.MetadataKeysLimit(), server.MetadataSubsLimit())) // SASL oldAccountConfig := server.AccountConfig()