From 8829793290304724f8ddb350a9853dcea716377b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ken-H=C3=A5vard=20Lieng?= Date: Sun, 24 May 2020 07:22:13 +0200 Subject: [PATCH] Append clientWantedCaps --- pkg/irc/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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") }