diff options
author | Wim <wim@42.be> | 2016-07-11 23:30:42 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2016-07-11 23:30:42 +0200 |
commit | fb586f4a9607ab6848ffe0c16702977637ed203b (patch) | |
tree | e471e601705e56ddc9f76ebae81bea401ad2dead /bridge/bridge.go | |
parent | ced371bece6bcdadba3f61bb70f5f5aa24bc3c23 (diff) | |
download | matterbridge-msglm-fb586f4a9607ab6848ffe0c16702977637ed203b.tar.gz matterbridge-msglm-fb586f4a9607ab6848ffe0c16702977637ed203b.tar.bz2 matterbridge-msglm-fb586f4a9607ab6848ffe0c16702977637ed203b.zip |
Remove Port from IRC config. Specify it with server
Diffstat (limited to 'bridge/bridge.go')
-rw-r--r-- | bridge/bridge.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bridge/bridge.go b/bridge/bridge.go index 8e2b1393..b6445be2 100644 --- a/bridge/bridge.go +++ b/bridge/bridge.go @@ -114,7 +114,10 @@ func (b *Bridge) createIRC(name string) *irc.Connection { i.Password = b.Config.IRC.Password } i.AddCallback(ircm.RPL_WELCOME, b.handleNewConnection) - i.Connect(b.Config.IRC.Server + ":" + strconv.Itoa(b.Config.IRC.Port)) + err := i.Connect(b.Config.IRC.Server) + if err != nil { + flog.irc.Fatal(err) + } return i } |