X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcore.cpp;h=20049a8f2b83c217cc43d1b33bb58f8bac094aa0;hb=e4972a0ebce0d555d752ab2f34ffd6a6dcdef1dd;hp=ebe1b08a74a40fcefc2d60d4b89f45143c7ef13a;hpb=9b394f92cb61b759d18f9acc6a1125e2396b8cb7;p=quassel.git diff --git a/src/core/core.cpp b/src/core/core.cpp index ebe1b08a..20049a8f 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -37,9 +37,16 @@ #ifdef Q_OS_WIN32 # include #else +# include # include #endif /* Q_OS_WIN32 */ +// umask +#ifndef Q_OS_WIN32 +# include +# include +#endif /* Q_OS_WIN32 */ + // ============================== // Custom Events // ============================== @@ -73,6 +80,9 @@ void Core::destroy() { Core::Core() : _storage(0) { +#ifndef Q_OS_WIN32 + umask(S_IRWXG | S_IRWXO); +#endif /* Q_OS_WIN32 */ _startTime = QDateTime::currentDateTime().toUTC(); // for uptime :) Quassel::loadTranslation(QLocale::system()); @@ -528,6 +538,8 @@ void Core::processClientMessage(QTcpSocket *socket, const QVariantMap &msg) { .arg(Quassel::buildInfo().buildDate) .arg(updays).arg(uphours,2,10,QChar('0')).arg(upmins,2,10,QChar('0')).arg(startTime().toString(Qt::TextDate)); + reply["CoreFeatures"] = (int)Quassel::features(); + #ifdef HAVE_SSL SslServer *sslServer = qobject_cast(&_server); QSslSocket *sslSocket = qobject_cast(socket);