From 8888e419e1e874564c8bb5107a642bc6f86a3e05 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sun, 29 Nov 2015 08:51:28 +0000 Subject: WhatsApp: - Updated some constants.h - Fixed error message git-svn-id: http://svn.miranda-ng.org/main/trunk@15785 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/WhatsAPI++/WARegister.cpp | 2 +- protocols/WhatsApp/src/constants.h | 2 +- protocols/WhatsApp/src/proto.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols') diff --git a/protocols/WhatsApp/src/WhatsAPI++/WARegister.cpp b/protocols/WhatsApp/src/WhatsAPI++/WARegister.cpp index 2bf0cb8b83..2db12da5b5 100644 --- a/protocols/WhatsApp/src/WhatsAPI++/WARegister.cpp +++ b/protocols/WhatsApp/src/WhatsAPI++/WARegister.cpp @@ -13,7 +13,7 @@ using namespace Utilities; ///////////////////////////////////////////////////////////////////////////////////////// // Token generation -static char WaToken[] = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1435688727801"; +static char WaToken[] = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1442277896714"; std::string WAToken::GenerateToken(const string &number) { diff --git a/protocols/WhatsApp/src/constants.h b/protocols/WhatsApp/src/constants.h index 08beef0422..1d7d56ff0d 100644 --- a/protocols/WhatsApp/src/constants.h +++ b/protocols/WhatsApp/src/constants.h @@ -24,7 +24,7 @@ // WhatsApp #define WHATSAPP_LOGIN_SERVER "c.whatsapp.net" -#define ACCOUNT_USER_AGENT "WhatsApp/2.12.96 S40Version/14.26 Device/Nokia302" +#define ACCOUNT_USER_AGENT "WhatsApp/2.13.5 S40Version/14.26 Device/Nokia302" #define ACCOUNT_URL_CODEREQUESTV2 "https://v.whatsapp.net/v2/code" #define ACCOUNT_URL_REGISTERREQUESTV2 "https://v.whatsapp.net/v2/register" #define ACCOUNT_URL_EXISTSV2 "https://v.whatsapp.net/v2/exist" diff --git a/protocols/WhatsApp/src/proto.cpp b/protocols/WhatsApp/src/proto.cpp index dcc8367e16..b4cb2bf683 100644 --- a/protocols/WhatsApp/src/proto.cpp +++ b/protocols/WhatsApp/src/proto.cpp @@ -279,7 +279,7 @@ bool WhatsAppProto::Register(int state, const string &cc, const string &number, if (reason == "stale") NotifyEvent(ptszTitle, TranslateT("Registration failed due to stale code. Please request a new code"), NULL, WHATSAPP_EVENT_CLIENT); else { - CMString tmp(FORMAT, TranslateT("Registration failed. Reason: %s"), reason.c_str()); + CMString tmp(FORMAT, TranslateT("Registration failed. Reason: %s"), _A2T(reason.c_str())); NotifyEvent(ptszTitle, tmp, NULL, WHATSAPP_EVENT_CLIENT); } -- cgit v1.2.3