Make configuration options consistent
This commit is contained in:
parent
ed0c413542
commit
16ce3cdfa5
@ -65,7 +65,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
|
||||||
|
Loading…
Reference in New Issue
Block a user