X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcore.cpp;h=d596344ca83d560d9c26fca79ac8b105d74c17a0;hp=1ff4adabb7fa95d377a826d9c31ac7f68b4a2d93;hb=5fc6f7e2d63b45770574260afd6ce535e9548d23;hpb=9451580d19875b23ec52af64585496efb7268e0f diff --git a/src/core/core.cpp b/src/core/core.cpp index 1ff4adab..d596344c 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -221,10 +221,10 @@ bool Core::init() if (Quassel::isOptionSet("oidentd")) { _oidentdConfigGenerator = new OidentdConfigGenerator(this); } - + if (Quassel::isOptionSet("ident-daemon")) { - _identServer = new IdentServer(_strictIdentEnabled, this); + _identServer = new IdentServer(this); } Quassel::registerReloadHandler([]() { @@ -670,7 +670,9 @@ bool Core::startListening() if (!success) quError() << qPrintable(tr("Could not open any network interfaces to listen on!")); - if (_identServer != nullptr) _identServer->startListening(); + if (_identServer) { + _identServer->startListening(); + } return success; } @@ -678,7 +680,9 @@ bool Core::startListening() void Core::stopListening(const QString &reason) { - if (_identServer != nullptr) _identServer->stopListening(reason); + if (_identServer) { + _identServer->stopListening(reason); + } bool wasListening = false; if (_server.isListening()) {