diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-03-15 10:22:11 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-03-15 10:22:11 +0000 |
commit | 7846764cedc3ebc2827e891d683fec31e2149baa (patch) | |
tree | 1cb561f95f6d46e7f62ccd022637b5bc9bf78065 /protocols/FacebookRM/src/connection.cpp | |
parent | 9ba2c4ec23e4079b69988719b56d8dd2f5d132ae (diff) |
Facebook: use clientid parameter in channel requests (fixes #536), version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@8613 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/connection.cpp')
-rw-r--r-- | protocols/FacebookRM/src/connection.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/connection.cpp b/protocols/FacebookRM/src/connection.cpp index 2c9496add2..dff3474234 100644 --- a/protocols/FacebookRM/src/connection.cpp +++ b/protocols/FacebookRM/src/connection.cpp @@ -161,6 +161,9 @@ bool FacebookProto::NegotiateConnection() // Get info about secured connection
facy.https_ = getByte(FACEBOOK_KEY_FORCE_HTTPS, DEFAULT_FORCE_HTTPS) != 0;
+ // Generate random clientid for this connection
+ facy.chat_clientid_ = utils::text::rand_string(8, "0123456789abcdef");
+
// Create default group for new contacts
ptrT groupName( getTStringA(FACEBOOK_KEY_DEF_GROUP));
if (groupName != NULL)
|