summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_trouter.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-04-29 14:23:56 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-04-29 14:23:56 +0000
commit157801507625921ba1e39988fe54e27a9157daa4 (patch)
tree9bc25f1c227617ecd61854dbdfa22e6bf0d2682f /protocols/SkypeWeb/src/skype_trouter.cpp
parentd667adb8f13d6e8917c225260631ad6905c3fbcf (diff)
SkypeWeb: Small fixes.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13242 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_trouter.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_trouter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/skype_trouter.cpp b/protocols/SkypeWeb/src/skype_trouter.cpp
index c1c2b33468..a9071bf780 100644
--- a/protocols/SkypeWeb/src/skype_trouter.cpp
+++ b/protocols/SkypeWeb/src/skype_trouter.cpp
@@ -45,8 +45,8 @@ void CSkypeProto::OnTrouterPoliciesCreated(const NETLIBHTTPREQUEST *response)
JSONROOT root(response->pData);
- int st = _ttoi(json_as_string(json_get(root, "st")));
- int se = _ttoi(json_as_string(json_get(root, "se")));
+ ptrA st(mir_t2a(ptrT(json_as_string(json_get(root, "st")))));
+ ptrA se(mir_t2a(ptrT(json_as_string(json_get(root, "se")))));
ptrA sig(mir_t2a(ptrT(json_as_string(json_get(root, "sig")))));
SendRequest(new GetTrouterRequest
@@ -67,7 +67,7 @@ void CSkypeProto::OnGetTrouter(const NETLIBHTTPREQUEST *response)
return;
CMStringA data(response->pData);
int iStart = 0;
- CMStringA szToken = data.Tokenize(";", iStart).Trim();
+ CMStringA szToken = data.Tokenize(":", iStart).Trim();
setString("Trouter_SessId", szToken);
}