diff options
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 } |