X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcore.cpp;h=d596344ca83d560d9c26fca79ac8b105d74c17a0;hb=425364f5f68a37582ddfa0494f4305f98f761e23;hp=cf943b98e438d1a50fb0e3b377600c42596d3b2c;hpb=dc11e24b95e5b5e3595cc0e98eb2a572006912c7;p=quassel.git diff --git a/src/core/core.cpp b/src/core/core.cpp index cf943b98..d596344c 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -222,6 +222,11 @@ bool Core::init() _oidentdConfigGenerator = new OidentdConfigGenerator(this); } + + if (Quassel::isOptionSet("ident-daemon")) { + _identServer = new IdentServer(this); + } + Quassel::registerReloadHandler([]() { // Currently, only reloading SSL certificates and the sysident cache is supported if (Core::instance()) { @@ -665,12 +670,20 @@ bool Core::startListening() if (!success) quError() << qPrintable(tr("Could not open any network interfaces to listen on!")); + if (_identServer) { + _identServer->startListening(); + } + return success; } void Core::stopListening(const QString &reason) { + if (_identServer) { + _identServer->stopListening(reason); + } + bool wasListening = false; if (_server.isListening()) { wasListening = true;