Append clientWantedCaps

This commit is contained in:
Ken-Håvard Lieng 2020-05-24 07:22:13 +02:00
parent 71b2136a9e
commit 8829793290

View File

@ -79,7 +79,6 @@ func NewClient(config Config) *Client {
nick: config.Nick,
Features: NewFeatures(),
Messages: make(chan *Message, 32),
wantedCapabilities: clientWantedCaps,
requestedCapabilities: map[string][]string{},
enabledCapabilities: map[string][]string{},
ConnectionChanged: make(chan ConnectionState, 4),
@ -95,6 +94,8 @@ func NewClient(config Config) *Client {
},
}
c.wantedCapabilities = append(c.wantedCapabilities, clientWantedCaps...)
if config.SASL != nil {
c.wantedCapabilities = append(c.wantedCapabilities, "sasl")
}