From: Janne Koschinski Date: Wed, 2 Jan 2019 18:02:34 +0000 (+0100) Subject: Properly handle options if core has just now been configured X-Git-Tag: 0.13.1~16 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=30962d60b9a058e415098130e098430cf70b63f7 Properly handle options if core has just now been configured --- diff --git a/src/core/core.cpp b/src/core/core.cpp index 51a6f0c4..5d49ee21 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -189,7 +189,9 @@ void Core::init() quInfo() << "Core is currently not configured! Please connect with a Quassel Client for basic setup."; } } - else { + + // This checks separately because config-from-environment might have only configured the core just now + if (_configured) { if (Quassel::isOptionSet("add-user")) { bool success = createUser(); throw ExitException{success ? EXIT_SUCCESS : EXIT_FAILURE};