summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-08-25 16:15:40 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-08-25 16:15:47 +0300
commitdfcfd2d4f53590faf29f3192eab235ffcace6bf2 (patch)
tree8b0fa9eaa8b428c7eedd83171b2af66f1e5f4f37 /protocols/Discord/src/proto.cpp
parent1c1ee19ac151d50f436b94db778ac53313d3de3e (diff)
fixes #845 ([Discord] Adding a new contact causes "Only bots can use this endpoint" error)
Diffstat (limited to 'protocols/Discord/src/proto.cpp')
-rw-r--r--protocols/Discord/src/proto.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Discord/src/proto.cpp b/protocols/Discord/src/proto.cpp
index 68fb32d8a8..ace96630cb 100644
--- a/protocols/Discord/src/proto.cpp
+++ b/protocols/Discord/src/proto.cpp
@@ -252,7 +252,7 @@ int CDiscordProto::AuthRequest(MCONTACT hContact, const wchar_t*)
return 1; // error
JSONNode root; root << WCHAR_PARAM("username", wszUsername) << INT_PARAM("discriminator", iDiscriminator);
- AsyncHttpRequest *pReq = new AsyncHttpRequest(this, REQUEST_POST, "/users/@me/relationships", &CDiscordProto::OnReceiveAuth, &root);
+ AsyncHttpRequest *pReq = new AsyncHttpRequest(this, REQUEST_POST, "/users/@me/relationships", nullptr, &root);
pReq->pUserInfo = (void*)hContact;
Push(pReq);
return 0;