0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd:Ⓜ️:homeserver: Run conf item update callbacks at construction for now.

This commit is contained in:
Jason Volk 2020-03-08 14:29:22 -07:00
parent 56a8f6494d
commit dcc0aae886

View file

@ -467,6 +467,23 @@ ircd::m::homeserver::conf::conf(const struct opts &opts)
}
}
{
for(const auto &[key, item] : ircd::conf::items) try
{
assert(item);
if(item->set_cb)
item->set_cb();
}
catch(const std::exception &e)
{
log::error
{
"Failed to initialize conf item '%s' :%s",
key,
e.what()
};
throw;
}
}
size_t