projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Protocol::RegisterClient: add buildDate field
[quassel.git]
/
src
/
common
/
protocols
/
legacy
/
legacypeer.cpp
diff --git
a/src/common/protocols/legacy/legacypeer.cpp
b/src/common/protocols/legacy/legacypeer.cpp
index
67e5130
..
982ffd7
100644
(file)
--- a/
src/common/protocols/legacy/legacypeer.cpp
+++ b/
src/common/protocols/legacy/legacypeer.cpp
@@
-151,7
+151,7
@@
void LegacyPeer::handleHandshakeMessage(const QVariant &msg)
socket()->setProperty("UseCompression", true);
}
#endif
socket()->setProperty("UseCompression", true);
}
#endif
- handle(RegisterClient(m["ClientVersion"].toString(), m["UseSsl"].toBool()));
+ handle(RegisterClient(m["ClientVersion"].toString(), m["
ClientDate"].toString(), m["
UseSsl"].toBool()));
}
else if (msgType == "ClientInitReject") {
}
else if (msgType == "ClientInitReject") {
@@
-213,7
+213,7
@@
void LegacyPeer::dispatch(const RegisterClient &msg) {
QVariantMap m;
m["MsgType"] = "ClientInit";
m["ClientVersion"] = msg.clientVersion;
QVariantMap m;
m["MsgType"] = "ClientInit";
m["ClientVersion"] = msg.clientVersion;
- m["ClientDate"] =
Quassel::buildInfo()
.buildDate;
+ m["ClientDate"] =
msg
.buildDate;
// FIXME only in compat mode
m["ProtocolVersion"] = protocolVersion;
// FIXME only in compat mode
m["ProtocolVersion"] = protocolVersion;