diff options
author | George Hazan <ghazan@miranda.im> | 2017-02-01 21:03:42 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-02-01 21:03:42 +0300 |
commit | 3e9fed0c18b72ccf4a7b06f62fe7eff2e12d773c (patch) | |
tree | f4cc66cf0f18bba5a10d0a93d42dc9debee0f90f /protocols/Discord/src/dispatch.cpp | |
parent | d2d633a1667ea16c9c88eae9d679c91c545a77ee (diff) |
Discord:
- we don't request user info when no user id is set;
- fix for the user addition;
- fix for creating shadow users when a presence is sent to non-existing user
Diffstat (limited to 'protocols/Discord/src/dispatch.cpp')
-rw-r--r-- | protocols/Discord/src/dispatch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp index becbab63f9..299074adde 100644 --- a/protocols/Discord/src/dispatch.cpp +++ b/protocols/Discord/src/dispatch.cpp @@ -249,7 +249,7 @@ void CDiscordProto::OnCommandMessageAck(const JSONNode &pRoot) void CDiscordProto::OnCommandPresence(const JSONNode &pRoot) { - CDiscordUser *pUser = PrepareUser(pRoot["user"]); + CDiscordUser *pUser = FindUser(_wtoi64(pRoot["user"]["id"].as_mstring())); if (pUser == NULL) return; |