summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-08-07 08:18:18 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-08-07 08:18:18 +0000
commit63f83672f9d84f65f6b60ac9f942064c40ecc071 (patch)
treed53c07e18932e0cccae77293360e128f04814a95 /protocols/SkypeWeb
parent2604dd1a9f41a7485c87f0edc64dfe5fa1df81ba (diff)
SkypeWeb: Correct version of [14851]
git-svn-id: http://svn.miranda-ng.org/main/trunk@14852 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb')
-rw-r--r--protocols/SkypeWeb/src/skype_contacts.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/skype_contacts.cpp b/protocols/SkypeWeb/src/skype_contacts.cpp
index d2ac6f323a..56e0ef62d9 100644
--- a/protocols/SkypeWeb/src/skype_contacts.cpp
+++ b/protocols/SkypeWeb/src/skype_contacts.cpp
@@ -127,15 +127,15 @@ void CSkypeProto::LoadContactsAuth(const NETLIBHTTPREQUEST *response)
break;
std::string skypename = item["sender"].as_string();
- std::string reason = root["greeting"].as_string();
- time_t eventTime = IsoToUnixTime(root["event_time_iso"].as_string().c_str());
+ std::string reason = item["greeting"].as_string();
+ time_t eventTime = IsoToUnixTime(item["event_time_iso"].as_string().c_str());
MCONTACT hContact = AddContact(skypename.c_str());
if (hContact)
{
time_t lastEventTime = db_get_dw(hContact, m_szModuleName, "LastAuthRequestTime", 0);
- if (lastEventTime == 0 || lastEventTime <= eventTime)
+ if (lastEventTime < eventTime)
{
db_set_dw(hContact, m_szModuleName, "LastAuthRequestTime", eventTime);
delSetting(hContact, "Auth");