Make configuration options consistent

This commit is contained in:
James Mills 2018-05-17 18:37:33 -07:00
parent ed0c413542
commit 16ce3cdfa5
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6

View File

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