From 4e0246d2fdb10e8c6ab3b66fc364accedfea07cd Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Sat, 31 Oct 2015 13:20:44 +0000 Subject: =?UTF-8?q?VKontakte:=20=E2=80=98Validation=20Required=E2=80=99=20?= =?UTF-8?q?error=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.miranda-ng.org/main/trunk@15656 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/misc.cpp | 3 +++ protocols/VKontakte/src/vk.h | 1 + 2 files changed, 4 insertions(+) diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 8d1661fcc4..7285cbe74d 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -271,6 +271,9 @@ bool CVkProto::CheckJsonResult(AsyncHttpRequest *pReq, const JSONNode &jnNode) case VKERR_CAPTCHA_NEEDED: ApplyCaptcha(pReq, jnError); break; + case VKERR_VALIDATION_REQUIRED: // Validation Required + MsgPopup(NULL, TranslateT("You must validate your account before use VK in Miranda NG"), TranslateT("Error"), true); + break; case VKERR_FLOOD_CONTROL: pReq->m_iRetry = 0; // fall through diff --git a/protocols/VKontakte/src/vk.h b/protocols/VKontakte/src/vk.h index 866d655bca..48efc7069d 100644 --- a/protocols/VKontakte/src/vk.h +++ b/protocols/VKontakte/src/vk.h @@ -57,6 +57,7 @@ along with this program. If not, see . #define VKERR_INTERNAL_SERVER_ERR 10 // Internal server error #define VKERR_CAPTCHA_NEEDED 14 // Captcha needed #define VKERR_ACCESS_DENIED 15 // Access denied +#define VKERR_VALIDATION_REQUIRED 17 // Validation Required #define VKERR_COULD_NOT_SAVE_FILE 105 // Couldn't save file #define VKERR_INVALID_ALBUM_ID 114 // Invalid album id #define VKERR_INVALID_SERVER 118 // Invalid server -- cgit v1.2.3