summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-05-11 17:01:09 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-05-11 17:01:09 +0000
commite8ab90ab839ce55a399280f1920e1afd0fb28424 (patch)
tree69f0a483d8f5408adfc1b3e3920aa3bd54d99f40 /protocols/SkypeWeb
parent6f7054d8f6c14e032a45a42555d4ab097fc82863 (diff)
SkypeWeb: Small fixes.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13550 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb')
-rw-r--r--protocols/SkypeWeb/src/skype_contacts.cpp2
-rw-r--r--protocols/SkypeWeb/src/skype_proto.cpp1
-rw-r--r--protocols/SkypeWeb/src/skype_search.cpp4
3 files changed, 4 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/skype_contacts.cpp b/protocols/SkypeWeb/src/skype_contacts.cpp
index 6829078a66..873186e0d9 100644
--- a/protocols/SkypeWeb/src/skype_contacts.cpp
+++ b/protocols/SkypeWeb/src/skype_contacts.cpp
@@ -133,7 +133,7 @@ void CSkypeProto::LoadContactsAuth(const NETLIBHTTPREQUEST *response)
node = json_get(root, "greeting");
CMStringA reason = ptrA(mir_t2a(ptrT(json_as_string(node))));
- node = json_get(root, "event_time");
+ node = json_get(root, "event_time_iso");
ptrT eventTimeStr(json_as_string(node));
time_t eventTime = IsoToUnixTime(eventTimeStr);
diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp
index 3c58c27066..01ef74b482 100644
--- a/protocols/SkypeWeb/src/skype_proto.cpp
+++ b/protocols/SkypeWeb/src/skype_proto.cpp
@@ -51,6 +51,7 @@ PROTO<CSkypeProto>(protoName, userName), password(NULL)
CreateDirectoryTreeT(m_tszAvatarFolder.c_str());
db_set_resident(m_szModuleName, "Status");
+ db_set_resident(m_szModuleName, "LastAuthRequestTime");
//hooks
m_hCallHook = CreateHookableEvent(MODULE"/IncomingCall");
diff --git a/protocols/SkypeWeb/src/skype_search.cpp b/protocols/SkypeWeb/src/skype_search.cpp
index c3e5c35655..67f3892f02 100644
--- a/protocols/SkypeWeb/src/skype_search.cpp
+++ b/protocols/SkypeWeb/src/skype_search.cpp
@@ -29,8 +29,8 @@ void CSkypeProto::SearchBasicThread(void* id)
if (!IsOnline())
return;
- TCHAR *idT = (TCHAR *)id;
- ptrA string(mir_urlEncode(mir_utf8encodeT(idT)));
+ ptrT idT((TCHAR *)id);
+ ptrA string(mir_urlEncode(ptrA(mir_utf8encodeT(idT))));
SendRequest(new GetSearchRequest(TokenSecret, string), &CSkypeProto::OnSearch);
}