X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcore.cpp;h=ebe1b08a74a40fcefc2d60d4b89f45143c7ef13a;hp=b2e3ee431c10aa74d590ce5bf95571120ec3abe6;hb=9b394f92cb61b759d18f9acc6a1125e2396b8cb7;hpb=b58a85be4678b448135e61c2e8f31f39281decac diff --git a/src/core/core.cpp b/src/core/core.cpp index b2e3ee43..ebe1b08a 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -509,10 +509,15 @@ void Core::processClientMessage(QTcpSocket *socket, const QVariantMap &msg) { socket->close(); return; } + reply["ProtocolVersion"] = Quassel::buildInfo().protocolVersion; reply["CoreVersion"] = Quassel::buildInfo().fancyVersionString; reply["CoreDate"] = Quassel::buildInfo().buildDate; - reply["ProtocolVersion"] = Quassel::buildInfo().protocolVersion; - // TODO: Make the core info configurable + reply["CoreStartTime"] = startTime(); // v10 clients don't necessarily parse this, see below + + // FIXME: newer clients no longer use the hardcoded CoreInfo (for now), since it gets the + // time zone wrong. With the next protocol bump (10 -> 11), we should remove this + // or make it properly configurable. + int uptime = startTime().secsTo(QDateTime::currentDateTime().toUTC()); int updays = uptime / 86400; uptime %= 86400; int uphours = uptime / 3600; uptime %= 3600;