diff --git a/pkg/irc/client.go b/pkg/irc/client.go index a95b6c5b..e9ac9e51 100644 --- a/pkg/irc/client.go +++ b/pkg/irc/client.go @@ -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") }