From 63f83672f9d84f65f6b60ac9f942064c40ecc071 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Fri, 7 Aug 2015 08:18:18 +0000 Subject: SkypeWeb: Correct version of [14851] git-svn-id: http://svn.miranda-ng.org/main/trunk@14852 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_contacts.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols') 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"); -- cgit v1.2.3