Merge pull request #16 from prologic/consistency_config_options

Makes configuration options consistent
This commit is contained in:
Ken-Håvard Lieng 2018-05-18 03:50:31 +02:00 committed by GitHub
commit b09da1fc3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,7 @@ func connectIRC(server storage.Server, session *Session) *irc.Client {
if server.Password == "" && if server.Password == "" &&
viper.GetString("defaults.password") != "" && viper.GetString("defaults.password") != "" &&
address == viper.GetString("defaults.address") { address == viper.GetString("defaults.host") {
i.Password = viper.GetString("defaults.password") i.Password = viper.GetString("defaults.password")
} else { } else {
i.Password = server.Password i.Password = server.Password