Do not use (or present to the user) the Address field in fixed mode

fix #3359
This commit is contained in:
louiz’
2018-05-23 01:09:36 +02:00
parent 1c4620d992
commit 7d3c1ed927
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -195,7 +195,8 @@ void IrcClient::start()
# ifdef BOTAN_FOUND
this->credential_manager.set_trusted_fingerprint(options.col<Database::TrustedFingerprint>());
# endif
if (!options.col<Database::Address>().empty())
if (Config::get("fixed_irc_server", "").empty() &&
!options.col<Database::Address>().empty())
address = options.col<Database::Address>();
#endif
this->bridge.send_xmpp_message(this->hostname, "", "Connecting to " +