projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3a4a8a8
)
Properly handle options if core has just now been configured
author
Janne Koschinski
<janne@kuschku.de>
Wed, 2 Jan 2019 18:02:34 +0000
(19:02 +0100)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Wed, 13 Feb 2019 19:27:02 +0000
(20:27 +0100)
src/core/core.cpp
patch
|
blob
|
history
diff --git
a/src/core/core.cpp
b/src/core/core.cpp
index
51a6f0c
..
5d49ee2
100644
(file)
--- 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};