diff options
author | George Hazan <george.hazan@gmail.com> | 2015-01-25 20:31:54 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-01-25 20:31:54 +0000 |
commit | 619f8bc3cf5e9f4aac984b8f855b74293fbb787d (patch) | |
tree | 7eb9cf8655c30d283bcd4a6b475ec459bd3daf24 /protocols/WhatsApp/src/connection.cpp | |
parent | 7325c10a7921fb043253a339ab5b5c3c803bfb14 (diff) |
missing params
git-svn-id: http://svn.miranda-ng.org/main/trunk@11908 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/connection.cpp')
-rw-r--r-- | protocols/WhatsApp/src/connection.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/WhatsApp/src/connection.cpp b/protocols/WhatsApp/src/connection.cpp index ee4609fc75..2acc8a89fa 100644 --- a/protocols/WhatsApp/src/connection.cpp +++ b/protocols/WhatsApp/src/connection.cpp @@ -60,7 +60,7 @@ void WhatsAppProto::stayConnectedLoop(void*) this->nick = dbv.pszVal;
db_free(&dbv);
}
- if (nick.empty()) {
+ if (this->nick.empty()) {
NotifyEvent(m_tszUserName, TranslateT("Please enter a nickname."), NULL, WHATSAPP_EVENT_CLIENT);
return;
}
@@ -119,6 +119,10 @@ void WhatsAppProto::stayConnectedLoop(void*) this->conn = new WASocketConnection("c.whatsapp.net", portNumber);
this->connection = new WAConnection(&this->connMutex, this, this);
+
+ this->connection->domain = "s.whatsapp.net";
+ this->connection->user = this->phoneNumber;
+ this->connection->resource = resource;
{
WALogin login(connection, new BinTreeNodeReader(connection, conn), new BinTreeNodeWriter(connection, conn, &writerMutex), password);
|