X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcore.cpp;h=6dc4fa7084057cc74d67f2bfd5cfcf81500a43dd;hb=61c8d84d1c849373e0f115dc748ed45cff95287d;hp=c894820c61d6bf525a4352aae8074fc70f179009;hpb=636812603e3308fece0ad677977c85b5cc9f18ee;p=quassel.git diff --git a/src/core/core.cpp b/src/core/core.cpp index c894820c..6dc4fa70 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -41,11 +41,10 @@ # include #endif /* Q_OS_WIN32 */ -// umask -#ifndef Q_OS_WIN32 +#ifdef HAVE_UMASK # include # include -#endif /* Q_OS_WIN32 */ +#endif /* HAVE_UMASK */ // ============================== // Custom Events @@ -80,9 +79,9 @@ void Core::destroy() { Core::Core() : _storage(0) { -#ifndef Q_OS_WIN32 +#ifdef HAVE_UMASK umask(S_IRWXG | S_IRWXO); -#endif /* Q_OS_WIN32 */ +#endif _startTime = QDateTime::currentDateTime().toUTC(); // for uptime :) Quassel::loadTranslation(QLocale::system()); @@ -201,6 +200,9 @@ void Core::init() { connect(&_server, SIGNAL(newConnection()), this, SLOT(incomingConnection())); connect(&_v6server, SIGNAL(newConnection()), this, SLOT(incomingConnection())); if(!startListening()) exit(1); // TODO make this less brutal + + if(Quassel::isOptionSet("oidentd")) + _oidentdConfigGenerator = new OidentdConfigGenerator(this); } Core::~Core() { @@ -240,6 +242,7 @@ void Core::restoreState() { return; } */ + QVariantList activeSessions = s.coreState().toMap()["ActiveSessions"].toList(); if(activeSessions.count() > 0) { quInfo() << "Restoring previous core state...";