summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-11-29 08:51:28 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-11-29 08:51:28 +0000
commit8888e419e1e874564c8bb5107a642bc6f86a3e05 (patch)
tree4484497a84bd1c9f218582f69d8008320e7bf9f4 /protocols/WhatsApp/src
parentd83e44700c4270e19d4cb7117244292f800cb14f (diff)
WhatsApp:
- Updated some constants.h - Fixed error message git-svn-id: http://svn.miranda-ng.org/main/trunk@15785 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src')
-rw-r--r--protocols/WhatsApp/src/WhatsAPI++/WARegister.cpp2
-rw-r--r--protocols/WhatsApp/src/constants.h2
-rw-r--r--protocols/WhatsApp/src/proto.cpp2
3 files changed, 3 insertions, 3 deletions
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);
}