summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_utils.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-07-27 13:48:14 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-07-27 13:48:14 +0000
commit346d6c8bba413fa13f31f8acfd808c23a4bbccae (patch)
tree44d5116e7330e5f87579d4826202557d0dc4851e /protocols/SkypeWeb/src/skype_utils.cpp
parent0d289371985e2d099b0de6b8150dbb74fb416e43 (diff)
SkypeWeb: More fixes & optimizations
git-svn-id: http://svn.miranda-ng.org/main/trunk@14738 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_utils.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_utils.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/protocols/SkypeWeb/src/skype_utils.cpp b/protocols/SkypeWeb/src/skype_utils.cpp
index cf0fcf7be5..39e8428b98 100644
--- a/protocols/SkypeWeb/src/skype_utils.cpp
+++ b/protocols/SkypeWeb/src/skype_utils.cpp
@@ -552,19 +552,18 @@ CMStringA CSkypeProto::GetStringChunk(const char *haystack, const char *start, c
return CMStringA(sstart, send - sstart);
}
-CMStringA CSkypeProto::ContactUrlToName(const char *url)
+CMStringA CSkypeProto::UrlToSkypename(const char *url)
{
- return ParseUrl(url, "/8:");
-}
+ CMStringA szResult;
-CMStringA CSkypeProto::SelfUrlToName(const char *url)
-{
- return ParseUrl(url, "/1:");
-}
+ if (strstr(url, "/1:"))
+ szResult = ParseUrl(url, "/1:");
+ else if (strstr(url, "/8:"))
+ szResult = ParseUrl(url, "/8:");
+ else if (strstr(url, "/19:"))
+ szResult = ParseUrl(url, "/19:");
-CMStringA CSkypeProto::ChatUrlToName(const char *url)
-{
- return ParseUrl(url, "/19:");
+ return szResult;
}
CMStringA CSkypeProto::GetServerFromUrl(const char *url)