3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-24 12:59:33 +01:00

Make metadata cap values accurate

This commit is contained in:
Daniel Oaks 2018-04-13 20:10:59 +10:00
parent 2eb2467de2
commit e43882c995

View File

@ -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()