summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/dispatch.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-02-01 21:03:42 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-02-01 21:03:42 +0300
commit3e9fed0c18b72ccf4a7b06f62fe7eff2e12d773c (patch)
treef4cc66cf0f18bba5a10d0a93d42dc9debee0f90f /protocols/Discord/src/dispatch.cpp
parentd2d633a1667ea16c9c88eae9d679c91c545a77ee (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.cpp2
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;