diff options
author | George Hazan <ghazan@miranda.im> | 2017-01-17 20:57:02 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-01-17 20:57:02 +0300 |
commit | ad61413a521ea9cebd849b659653a21c2c33ff8a (patch) | |
tree | 9029a623fbbe1491f86a68cbaa92b6b45c786521 /protocols/Discord/src/dispatch.cpp | |
parent | b327ed7872ca83c3a4249039ba1a3d8dd3ece630 (diff) |
Discord: auth support
Diffstat (limited to 'protocols/Discord/src/dispatch.cpp')
-rw-r--r-- | protocols/Discord/src/dispatch.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp index ba58f4cd16..1886e9d106 100644 --- a/protocols/Discord/src/dispatch.cpp +++ b/protocols/Discord/src/dispatch.cpp @@ -166,9 +166,8 @@ void CDiscordProto::OnCommandReady(const JSONNode &pRoot) for (auto it = relations.begin(); it != relations.end(); ++it) { const JSONNode &p = *it; - const JSONNode &user = p["user"]; - if (user) - PrepareUser(user); + CDiscordUser *pUser = PrepareUser(p["user"]); + ProcessType(pUser, p); } const JSONNode &channels = pRoot["private_channels"]; |