forked from External/ergo
Initial METADATA work. Subs are totally broken and SYNC returns wrong data
This commit is contained in:
parent
b77a378ddf
commit
2eb2467de2
10 changed files with 524 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ var (
|
|||
|
||||
// SupportedCapabilities are the caps we advertise.
|
||||
// MaxLine, SASL and STS are set during server startup.
|
||||
SupportedCapabilities = caps.NewSet(caps.AccountTag, caps.AccountNotify, caps.AwayNotify, caps.Batch, caps.CapNotify, caps.ChgHost, caps.EchoMessage, caps.ExtendedJoin, caps.InviteNotify, caps.LabeledResponse, caps.Languages, caps.MessageTags, caps.MultiPrefix, caps.Rename, caps.Resume, caps.ServerTime, caps.UserhostInNames)
|
||||
SupportedCapabilities = caps.NewSet(caps.AccountTag, caps.AccountNotify, caps.AwayNotify, caps.Batch, caps.CapNotify, caps.ChgHost, caps.EchoMessage, caps.ExtendedJoin, caps.InviteNotify, caps.LabeledResponse, caps.Languages, caps.MessageTags, caps.Metadata, caps.MultiPrefix, caps.Rename, caps.Resume, caps.ServerTime, caps.UserhostInNames)
|
||||
|
||||
// CapValues are the actual values we advertise to v3.2 clients.
|
||||
// actual values are set during server startup.
|
||||
|
|
@ -835,6 +835,9 @@ func (server *Server) applyConfig(config *Config, initial bool) error {
|
|||
|
||||
server.languages = lm
|
||||
|
||||
// Metadata
|
||||
CapValues.Set(caps.Metadata, "maxsub=10")
|
||||
|
||||
// SASL
|
||||
oldAccountConfig := server.AccountConfig()
|
||||
authPreviouslyEnabled := oldAccountConfig != nil && oldAccountConfig.AuthenticationEnabled
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue