summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/process.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-11-19 19:18:00 +0000
committerRobert Pösel <robyer@seznam.cz>2013-11-19 19:18:00 +0000
commitd9afe7697ba309f6d78b61adea474942c0b55424 (patch)
tree5f1c65957f29d0fee1d381859c21ad58b562304b /protocols/FacebookRM/src/process.cpp
parent3000e4130b54028e8b10040fda3d9fc6f7302959 (diff)
Facebook: distinguish more types of clients and don't reset old client at login/logoff
git-svn-id: http://svn.miranda-ng.org/main/trunk@6940 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r--protocols/FacebookRM/src/process.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp
index d62271b1a3..f5807a512d 100644
--- a/protocols/FacebookRM/src/process.cpp
+++ b/protocols/FacebookRM/src/process.cpp
@@ -68,8 +68,8 @@ void FacebookProto::ProcessBuddyList(void* data)
hContact = AddToContactList(fbu, CONTACT_FRIEND);
ptrT client( getTStringA(hContact, "MirVer"));
- if (!client || _tcscmp(client, fbu->mobile ? _T(FACEBOOK_CLIENT_MOBILE) : _T(FACEBOOK_CLIENT)))
- setTString(hContact, "MirVer", fbu->mobile ? _T(FACEBOOK_CLIENT_MOBILE) : _T(FACEBOOK_CLIENT));
+ if (!client || _tcscmp(client, fbu->getMirVer()))
+ setTString(hContact, "MirVer", fbu->getMirVer());
if (getDword(fbu->handle, "IdleTS", 0) != fbu->last_active) {
if ((fbu->idle || fbu->status_id == ID_STATUS_OFFLINE) && fbu->last_active > 0)