Append clientWantedCaps
This commit is contained in:
parent
71b2136a9e
commit
8829793290
@ -79,7 +79,6 @@ func NewClient(config Config) *Client {
|
|||||||
nick: config.Nick,
|
nick: config.Nick,
|
||||||
Features: NewFeatures(),
|
Features: NewFeatures(),
|
||||||
Messages: make(chan *Message, 32),
|
Messages: make(chan *Message, 32),
|
||||||
wantedCapabilities: clientWantedCaps,
|
|
||||||
requestedCapabilities: map[string][]string{},
|
requestedCapabilities: map[string][]string{},
|
||||||
enabledCapabilities: map[string][]string{},
|
enabledCapabilities: map[string][]string{},
|
||||||
ConnectionChanged: make(chan ConnectionState, 4),
|
ConnectionChanged: make(chan ConnectionState, 4),
|
||||||
@ -95,6 +94,8 @@ func NewClient(config Config) *Client {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
c.wantedCapabilities = append(c.wantedCapabilities, clientWantedCaps...)
|
||||||
|
|
||||||
if config.SASL != nil {
|
if config.SASL != nil {
|
||||||
c.wantedCapabilities = append(c.wantedCapabilities, "sasl")
|
c.wantedCapabilities = append(c.wantedCapabilities, "sasl")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user