summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/dispatch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Discord/src/dispatch.cpp')
-rw-r--r--protocols/Discord/src/dispatch.cpp5
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"];