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:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user