diff options
author | George Hazan <ghazan@miranda.im> | 2017-02-15 16:14:35 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-02-15 16:14:35 +0300 |
commit | 2bb0ece5e88be17b6f3a561ccddfd07035cb6252 (patch) | |
tree | 4ede27b1d40073a5403c01813ca812cae6078dfd /protocols/Discord | |
parent | 7f3ceaf216747df47efea57343eb1faa5c69f0bf (diff) |
all events to have timestamps
Diffstat (limited to 'protocols/Discord')
-rw-r--r-- | protocols/Discord/src/dispatch.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp index dbbd4e41e4..571bbed738 100644 --- a/protocols/Discord/src/dispatch.cpp +++ b/protocols/Discord/src/dispatch.cpp @@ -109,6 +109,7 @@ void CDiscordProto::OnCommandChannelUpdated(const JSONNode &pRoot) GCDEST gcd = { m_szModuleName, pUser->wszUsername, GC_EVENT_TOPIC }; GCEVENT gce = { &gcd }; gce.ptszText = wszTopic; + gce.time = time(0); Chat_Event(&gce); } } @@ -217,6 +218,7 @@ void CDiscordProto::ProcessGuild(const JSONNode &readState, const JSONNode &p) GCDEST gcd = { m_szModuleName, wszChannelId, GC_EVENT_TOPIC }; GCEVENT gce = { &gcd }; + gce.time = time(0); gce.ptszText = wszTopic; Chat_Event(&gce); } @@ -283,6 +285,7 @@ void CDiscordProto::OnCommandGuildSync(const JSONNode &pRoot) gce.bIsMe = (userId == m_ownId); gce.ptszUID = wszUserId; gce.ptszNick = wszNick.IsEmpty() ? wszUsername : wszNick; + gce.time = time(0); Chat_Event(&gce); int flags = GC_SSE_ONLYLISTED; @@ -329,6 +332,7 @@ void CDiscordProto::OnCommandGuildMemberRemoved(const JSONNode &pRoot) GCDEST gcd = { m_szModuleName, pUser.wszUsername, GC_EVENT_PART }; GCEVENT gce = { &gcd }; + gce.time = time(0); gce.ptszUID = wszUserId; Chat_Event(&gce); } @@ -354,6 +358,7 @@ void CDiscordProto::OnCommandGuildMemberUpdated(const JSONNode &pRoot) GCDEST gcd = { m_szModuleName, pUser.wszUsername, GC_EVENT_NICK }; GCEVENT gce = { &gcd }; + gce.time = time(0); gce.ptszUID = wszUserId; gce.ptszNick = wszOldNick; gce.ptszText = wszUserNick; |