diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-11-17 20:58:10 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-11-17 20:58:10 +0000 |
commit | 006901599005cad619b8832adc2f1bcb9f34f2ff (patch) | |
tree | f8562a4d8388a3e8ce238d6cda8c107dd1fba30e /protocols/Skype/src/skype_contacts.cpp | |
parent | d455326ddad52ed872927a67eea82fa6cd102fa3 (diff) |
added users info
git-svn-id: http://svn.miranda-ng.org/main/trunk@2343 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_contacts.cpp')
-rw-r--r-- | protocols/Skype/src/skype_contacts.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/protocols/Skype/src/skype_contacts.cpp b/protocols/Skype/src/skype_contacts.cpp index 5d497ece2e..736bffd7c6 100644 --- a/protocols/Skype/src/skype_contacts.cpp +++ b/protocols/Skype/src/skype_contacts.cpp @@ -312,20 +312,20 @@ void CSkypeProto::UpdateContactTimezone(HANDLE hContact, CContact::Ref contact) void CSkypeProto::UpdateContactOnlineSinceTime(HANDLE hContact, CContact::Ref contact)
{
- uint data;
- contact->GetPropLastonlineTimestamp(data);
- if (data > 0)
- {
- }
+ uint newTS = 0;
+ contact->GetPropLastonlineTimestamp(newTS);
+ DWORD oldTS = this->GetSettingDword(hContact, "OnlineSinceTS");
+ if (newTS > oldTS)
+ this->SetSettingDword(hContact, "OnlineSinceTS", newTS);
}
void CSkypeProto::UpdateContactLastEventDate(HANDLE hContact, CContact::Ref contact)
{
- uint data;
- contact->GetPropLastusedTimestamp(data);
- if (data > 0)
- {
- }
+ uint newTS = 0;
+ contact->GetPropLastusedTimestamp(newTS);
+ DWORD oldTS = this->GetSettingDword(hContact, "LastEventDateTS");
+ if (newTS > oldTS)
+ this->SetSettingDword(hContact, "LastEventDateTS", newTS);
}
void CSkypeProto::UpdateFullName(HANDLE hContact, CContact::Ref contact)
|