From fb586f4a9607ab6848ffe0c16702977637ed203b Mon Sep 17 00:00:00 2001 From: Wim Date: Mon, 11 Jul 2016 23:30:42 +0200 Subject: Remove Port from IRC config. Specify it with server --- bridge/bridge.go | 5 ++++- bridge/config.go | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'bridge') 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 } diff --git a/bridge/config.go b/bridge/config.go index 37d3e95c..2bec5108 100644 --- a/bridge/config.go +++ b/bridge/config.go @@ -11,7 +11,6 @@ type Config struct { UseTLS bool SkipTLSVerify bool Server string - Port int Nick string Password string Channel string @@ -22,7 +21,6 @@ type Config struct { } Mattermost struct { URL string - Port int ShowJoinPart bool Token string IconURL string -- cgit v1.2.3