summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp
diff options
context:
space:
mode:
authorFishbone <fishbone@miranda-ng.org>2013-06-07 12:07:45 +0000
committerFishbone <fishbone@miranda-ng.org>2013-06-07 12:07:45 +0000
commitfa38cd5864b1b8090be141e3c4291df6d3322e30 (patch)
tree3e05d815d33961f6382beb26b6656c786a7f7462 /protocols/WhatsApp
parent9f53b4ab59d8183b9064ac65ab46a87932b5cf34 (diff)
WhatsApp: Fixed requesting code for registration (works now)
git-svn-id: http://svn.miranda-ng.org/main/trunk@4891 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp')
-rw-r--r--protocols/WhatsApp/src/constants.h5
-rw-r--r--protocols/WhatsApp/src/proto.cpp1
2 files changed, 6 insertions, 0 deletions
diff --git a/protocols/WhatsApp/src/constants.h b/protocols/WhatsApp/src/constants.h
index 5ef23bb98b..e14a02cf3f 100644
--- a/protocols/WhatsApp/src/constants.h
+++ b/protocols/WhatsApp/src/constants.h
@@ -43,9 +43,14 @@
// WhatsApp Nokia 302 S40
#define ACCOUNT_RESOURCE "S40-2.3.53"
+/*
#define ACCOUNT_USER_AGENT_REGISTRATION "WhatsApp/2.3.53 S40Version/14.26 Device/Nokia302"
#define ACCOUNT_TOKEN_PREFIX1 "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk"
#define ACCOUNT_TOKEN_PREFIX2 "1354754753509"
+*/
+#define ACCOUNT_USER_AGENT_REGISTRATION "WhatsApp/2.9.4 WP7/7.10.8858 Device/HTC-HTC-H0002"
+#define ACCOUNT_TOKEN_PREFIX1 "Od52pFozHNWF9XbTN5lrqDtnsiZGL2G3l9yw1GiQ"
+#define ACCOUNT_TOKEN_PREFIX2 "21a31a2d9dbdc9a8ce324ef2df918064fd26e30a"
#define WHATSAPP_RECV_MESSAGE 1
#define WHATSAPP_SEND_MESSAGE 2
diff --git a/protocols/WhatsApp/src/proto.cpp b/protocols/WhatsApp/src/proto.cpp
index 29be123437..8c9669d58c 100644
--- a/protocols/WhatsApp/src/proto.cpp
+++ b/protocols/WhatsApp/src/proto.cpp
@@ -180,6 +180,7 @@ void WhatsAppProto::RequestCode()
if ( !db_get_s(NULL,m_szModuleName,WHATSAPP_KEY_IDX,&dbv,DBVT_ASCIIZ))
{
idx = dbv.pszVal;
+ db_free(&dbv);
}
if (idx.empty())
{