projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement IRCv3 Server-Time
[quassel.git]
/
src
/
core
/
coresession.h
diff --git
a/src/core/coresession.h
b/src/core/coresession.h
index
d44a9c4
..
99cd593
100644
(file)
--- a/
src/core/coresession.h
+++ b/
src/core/coresession.h
@@
-306,6
+306,7
@@
struct NetworkInternalMessage
struct RawMessage
{
struct RawMessage
{
+ QDateTime timestamp;
NetworkId networkId;
Message::Type type;
BufferInfo::Type bufferType;
NetworkId networkId;
Message::Type type;
BufferInfo::Type bufferType;
@@
-314,14
+315,16
@@
struct RawMessage
QString sender;
Message::Flags flags;
QString sender;
Message::Flags flags;
- RawMessage(NetworkId networkId,
+ RawMessage(QDateTime timestamp,
+ NetworkId networkId,
Message::Type type,
BufferInfo::Type bufferType,
QString target,
QString text,
QString sender,
Message::Flags flags)
Message::Type type,
BufferInfo::Type bufferType,
QString target,
QString text,
QString sender,
Message::Flags flags)
- : networkId(networkId)
+ : timestamp(std::move(timestamp))
+ , networkId(networkId)
, type(type)
, bufferType(bufferType)
, target(std::move(target))
, type(type)
, bufferType(bufferType)
, target(std::move(target))
@@
-332,7
+335,8
@@
struct RawMessage
RawMessage(NetworkId networkId,
const NetworkInternalMessage& msg)
RawMessage(NetworkId networkId,
const NetworkInternalMessage& msg)
- : networkId(networkId)
+ : timestamp(QDateTime::currentDateTimeUtc())
+ , networkId(networkId)
, type(msg.type)
, bufferType(msg.bufferType)
, target(msg.target)
, type(msg.type)
, bufferType(msg.bufferType)
, target(msg.target)