From 79ffb76f6e87fde36bee3e4bd43d7d5145ba3c67 Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 21 Jul 2016 23:47:44 +0200 Subject: Add (PLAIN) SASL support --- bridge/bridge.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bridge/bridge.go') diff --git a/bridge/bridge.go b/bridge/bridge.go index 406e4687..034aed6f 100644 --- a/bridge/bridge.go +++ b/bridge/bridge.go @@ -108,6 +108,9 @@ func NewBridge(name string, config *Config, kind string) *Bridge { func (b *Bridge) createIRC(name string) *irc.Connection { i := irc.IRC(b.Config.IRC.Nick, b.Config.IRC.Nick) i.UseTLS = b.Config.IRC.UseTLS + i.UseSASL = b.Config.IRC.UseSASL + i.SASLLogin = b.Config.IRC.NickServNick + i.SASLPassword = b.Config.IRC.NickServPassword i.TLSConfig = &tls.Config{InsecureSkipVerify: b.Config.IRC.SkipTLSVerify} if b.Config.IRC.Password != "" { i.Password = b.Config.IRC.Password -- cgit v1.2.3