summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");