diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Discord/src/avatars.cpp | 2 | ||||
-rw-r--r-- | protocols/Discord/src/http.cpp | 2 | ||||
-rw-r--r-- | protocols/Discord/src/server.cpp | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Discord/src/avatars.cpp b/protocols/Discord/src/avatars.cpp index 38e7cb4eb9..dbaa304fb1 100644 --- a/protocols/Discord/src/avatars.cpp +++ b/protocols/Discord/src/avatars.cpp @@ -99,7 +99,7 @@ bool CDiscordProto::RetrieveAvatar(MCONTACT hContact) if (id == 0 || szAvatarHash == nullptr) return false; - CMStringA szUrl(FORMAT, "https://cdn.discordapp.com/avatars/%lld/%s.jpg", id, szAvatarHash.get()); + CMStringA szUrl(FORMAT, "https://cdn.discord.com/avatars/%lld/%s.jpg", id, szAvatarHash.get()); AsyncHttpRequest *pReq = new AsyncHttpRequest(this, REQUEST_GET, szUrl, &CDiscordProto::OnReceiveAvatar); pReq->pUserInfo = (void*)hContact; Push(pReq); diff --git a/protocols/Discord/src/http.cpp b/protocols/Discord/src/http.cpp index 1b8cbeae7d..b9832098bc 100644 --- a/protocols/Discord/src/http.cpp +++ b/protocols/Discord/src/http.cpp @@ -41,7 +41,7 @@ static LONG g_reqNum = 0; AsyncHttpRequest::AsyncHttpRequest(CDiscordProto *ppro, int iRequestType, LPCSTR _url, MTHttpRequestHandler pFunc, JSONNode *pRoot) { if (*_url == '/') { // relative url leads to a site - m_szUrl = "https://discordapp.com/api/v6"; + m_szUrl = "https://discord.com/api/v6"; m_szUrl += _url; m_bMainSite = true; } diff --git a/protocols/Discord/src/server.cpp b/protocols/Discord/src/server.cpp index 735d2193b8..44fabe5123 100644 --- a/protocols/Discord/src/server.cpp +++ b/protocols/Discord/src/server.cpp @@ -243,7 +243,7 @@ void CDiscordProto::OnReceiveMessageAck(NETLIBHTTPREQUEST *pReply, AsyncHttpRequ ///////////////////////////////////////////////////////////////////////////////////////// #define RECAPTCHA_API_KEY "6Lef5iQTAAAAAKeIvIY-DeexoO3gj7ryl9rLMEnn" -#define RECAPTCHA_SITE_URL "https://discordapp.com" +#define RECAPTCHA_SITE_URL "https://discord.com" void CDiscordProto::OnReceiveToken(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest*) { @@ -255,7 +255,7 @@ void CDiscordProto::OnReceiveToken(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest*) for (auto &it : captcha) { if (it.as_mstring() == "captcha-required") { MessageBoxW(NULL, TranslateT("The server requires you to enter the captcha. Miranda will redirect you to a browser now"), L"Discord", MB_OK | MB_ICONINFORMATION); - Utils_OpenUrl("https://discordapp.com/app"); + Utils_OpenUrl("https://discord.com/app"); } } } |