0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-23 21:33:44 +02:00

construct: Reenable -nomatrix program option.

This commit is contained in:
Jason Volk 2019-10-03 13:21:50 -07:00
parent 096d46e198
commit ec8459dd41

View file

@ -229,7 +229,7 @@ noexcept try
// 2 This branch is taken the first time this function is called,
// and not taken the second time.
if(level == ircd::run::level::IDLE && !context)
if(level == ircd::run::level::IDLE && !context && !nomatrix)
{
// 3 Launch the homeserver context (asynchronous).
context = { "matrix", homeserver };
@ -242,7 +242,7 @@ noexcept try
return;
}
if(level != ircd::run::level::QUIT)
if(level != ircd::run::level::QUIT || !context)
return;
// 11