0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-28 11:48:54 +02:00

ircd:Ⓜ️:homeserver: Additional construction conditions.

This commit is contained in:
Jason Volk 2019-10-04 14:17:24 -07:00
parent a796d33170
commit 6122a7eb1f

View file

@ -228,7 +228,12 @@ ircd::m::homeserver::homeserver(const struct opts *const &opts)
if(primary == this && dbs::events && sequence(*dbs::events) == 0)
bootstrap(*this);
m::keys::cache::set(key->verify_keys);
if(primary == this && conf)
conf->load();
if(key && !key->verify_keys.empty())
m::keys::cache::set(key->verify_keys);
signon(*this);
}