diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-10-31 13:20:44 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-10-31 13:20:44 +0000 |
commit | 4e0246d2fdb10e8c6ab3b66fc364accedfea07cd (patch) | |
tree | d6e4ff151eafc60bc6cf793f0a2fb5e9775e730a | |
parent | 47e0a9be59f5292a13af0a316ba4cda60ad3844a (diff) |
VKontakte: ‘Validation Required’ error support
git-svn-id: http://svn.miranda-ng.org/main/trunk@15656 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 3 | ||||
-rw-r--r-- | protocols/VKontakte/src/vk.h | 1 |
2 files changed, 4 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. #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
|