summaryrefslogtreecommitdiffstats
path: root/matterbridge.go
diff options
context:
space:
mode:
author@42wim <wim@42.be>2016-01-29 00:45:01 +0100
committer@42wim <wim@42.be>2016-01-29 00:45:01 +0100
commit304dc2e25fcfe8f69662956d966c0a2db0610e2b (patch)
tree86c2b3753101f21f5777f408829037acbd5bb365 /matterbridge.go
parentc7ace91bf68fc84d7d9d03f0d5a89666d00dd6eb (diff)
parentfd74dca175d0abf2dec28f7c996b6789fec9c6b7 (diff)
downloadmatterbridge-msglm-304dc2e25fcfe8f69662956d966c0a2db0610e2b.tar.gz
matterbridge-msglm-304dc2e25fcfe8f69662956d966c0a2db0610e2b.tar.bz2
matterbridge-msglm-304dc2e25fcfe8f69662956d966c0a2db0610e2b.zip
Merge pull request #8 from daysofwineandroses/master
Add PASS support as per RFC1459
Diffstat (limited to 'matterbridge.go')
-rw-r--r--matterbridge.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/matterbridge.go b/matterbridge.go
index 59165dfa..a07ab303 100644
--- a/matterbridge.go
+++ b/matterbridge.go
@@ -41,6 +41,9 @@ 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.TLSConfig = &tls.Config{InsecureSkipVerify: b.Config.IRC.SkipTLSVerify}
+ if b.Config.IRC.Password != "" {
+ i.Password = b.Config.IRC.Password
+ }
i.Connect(b.Config.IRC.Server + ":" + strconv.Itoa(b.Config.IRC.Port))
time.Sleep(time.Second)
log.Println("Joining", b.Config.IRC.Channel, "as", b.Config.IRC.Nick)