diff --git a/server/irc.go b/server/irc.go index f4fe3b9c..1d94fedd 100644 --- a/server/irc.go +++ b/server/irc.go @@ -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