summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/proto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Discord/src/proto.cpp')
-rw-r--r--protocols/Discord/src/proto.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/Discord/src/proto.cpp b/protocols/Discord/src/proto.cpp
index 19db84f38a..c4ac40a83d 100644
--- a/protocols/Discord/src/proto.cpp
+++ b/protocols/Discord/src/proto.cpp
@@ -338,9 +338,7 @@ void CDiscordProto::OnReceiveUserinfo(MHttpResponse *pReply, AsyncHttpRequest*)
return;
}
- auto &data = root.data();
- CMStringW wszUserId(data["username"].as_mstring() + L"#" + data["discriminator"].as_mstring());
- ForkThread(&CDiscordProto::SearchThread, wszUserId.Detach());
+ ForkThread(&CDiscordProto::SearchThread, getNick(root.data()).Detach());
}
HANDLE CDiscordProto::SearchBasic(const wchar_t *wszId)