summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/connection.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-01-29 09:10:18 +0000
committerRobert Pösel <robyer@seznam.cz>2016-01-29 09:10:18 +0000
commit6b82dc2cd3d41ac2354d6c0b4633e4e659da991d (patch)
tree19d7fa4bea9e2361cd21b670355bd861a3694b9e /protocols/WhatsApp/src/connection.cpp
parentcbb49d4f309a008b29f60a1f4d14923010640fe7 (diff)
WhatsApp: Thug Life, use empty resource workaround (thanks Thug)
git-svn-id: http://svn.miranda-ng.org/main/trunk@16184 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/connection.cpp')
-rw-r--r--protocols/WhatsApp/src/connection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/WhatsApp/src/connection.cpp b/protocols/WhatsApp/src/connection.cpp
index be64ed1b41..4c5f43f826 100644
--- a/protocols/WhatsApp/src/connection.cpp
+++ b/protocols/WhatsApp/src/connection.cpp
@@ -64,9 +64,9 @@ void WhatsAppProto::stayConnectedLoop(void*)
std::string password(passBin, passLen), resource = ACCOUNT_RESOURCE;
int portNumber;
if (getByte(WHATSAPP_KEY_SSL, 0))
- portNumber = 443, resource += "-443";
+ portNumber = 443, resource += "";
else
- portNumber = 5222, resource += "-5222";
+ portNumber = 5222, resource += "";
m_pSocket = new WASocketConnection("c.whatsapp.net", portNumber);
m_pConnection = new WAConnection(m_szPhoneNumber, resource, &connMutex, &writerMutex, m_pSocket, this, this);