X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcore.cpp;h=e3c7931498c8acdb49274f8f8670d62229a20e99;hp=1ff4adabb7fa95d377a826d9c31ac7f68b4a2d93;hb=2e83624ce2642589a5b1f298e4993c51d22caafe;hpb=9451580d19875b23ec52af64585496efb7268e0f diff --git a/src/core/core.cpp b/src/core/core.cpp index 1ff4adab..e3c79314 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -221,7 +221,7 @@ bool Core::init() if (Quassel::isOptionSet("oidentd")) { _oidentdConfigGenerator = new OidentdConfigGenerator(this); } - + if (Quassel::isOptionSet("ident-daemon")) { _identServer = new IdentServer(_strictIdentEnabled, this); @@ -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()) {