forked from lug/matterbridge
		
	Remove Port from IRC config. Specify it with server
This commit is contained in:
		| @@ -56,8 +56,7 @@ Look at matterbridge.conf.sample for an example | |||||||
|  |  | ||||||
| ``` | ``` | ||||||
| [IRC] | [IRC] | ||||||
| server="irc.freenode.net" | server="irc.freenode.net:6667" | ||||||
| port=6667 |  | ||||||
| #default no TLS connection to irc server | #default no TLS connection to irc server | ||||||
| UseTLS=false | UseTLS=false | ||||||
| #do not check the certificate if we use TLS (allows for selfsigned certificates) | #do not check the certificate if we use TLS (allows for selfsigned certificates) | ||||||
|   | |||||||
| @@ -114,7 +114,10 @@ func (b *Bridge) createIRC(name string) *irc.Connection { | |||||||
| 		i.Password = b.Config.IRC.Password | 		i.Password = b.Config.IRC.Password | ||||||
| 	} | 	} | ||||||
| 	i.AddCallback(ircm.RPL_WELCOME, b.handleNewConnection) | 	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 | 	return i | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -11,7 +11,6 @@ type Config struct { | |||||||
| 		UseTLS           bool | 		UseTLS           bool | ||||||
| 		SkipTLSVerify    bool | 		SkipTLSVerify    bool | ||||||
| 		Server           string | 		Server           string | ||||||
| 		Port             int |  | ||||||
| 		Nick             string | 		Nick             string | ||||||
| 		Password         string | 		Password         string | ||||||
| 		Channel          string | 		Channel          string | ||||||
| @@ -22,7 +21,6 @@ type Config struct { | |||||||
| 	} | 	} | ||||||
| 	Mattermost struct { | 	Mattermost struct { | ||||||
| 		URL                    string | 		URL                    string | ||||||
| 		Port                   int |  | ||||||
| 		ShowJoinPart           bool | 		ShowJoinPart           bool | ||||||
| 		Token                  string | 		Token                  string | ||||||
| 		IconURL                string | 		IconURL                string | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Wim
					Wim