4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-07-07 04:14:04 +00:00

Remove Port from IRC config. Specify it with server

This commit is contained in:
Wim
2016-07-11 23:30:42 +02:00
parent ced371bece
commit fb586f4a96
3 changed files with 5 additions and 5 deletions

View File

@ -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
}