summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_utils.cpp
diff options
context:
space:
mode:
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)