diff options
Diffstat (limited to 'protocols/Discord')
-rw-r--r-- | protocols/Discord/src/server.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/protocols/Discord/src/server.cpp b/protocols/Discord/src/server.cpp index 414c22815d..340087bf89 100644 --- a/protocols/Discord/src/server.cpp +++ b/protocols/Discord/src/server.cpp @@ -270,9 +270,12 @@ void CDiscordProto::OnReceiveToken(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest*) if (root) { const JSONNode &captcha = root["captcha_key"].as_array(); if (captcha) { - for (auto& it : captcha) - if (it.as_mstring() == "captcha-required") - debugLogA("captcha required"); + 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"); + } + } } } ConnectionFailed(LOGINERR_WRONGPASSWORD); |