summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_utils.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-04-07 13:11:14 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-04-07 13:11:14 +0000
commit01f445ee06bc3f303d4e7d8fb00938220adbf618 (patch)
treed4dfe5dbe1f8923f1601cd4e568328aba5475825 /protocols/SkypeWeb/src/skype_utils.cpp
parent00d6d7d71a015dfeb34e891f0ebe39a7795ea57f (diff)
SkypeWeb: Chats support part 1.
git-svn-id: http://svn.miranda-ng.org/main/trunk@12649 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_utils.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_utils.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/skype_utils.cpp b/protocols/SkypeWeb/src/skype_utils.cpp
index d9c1501b0b..d86b745480 100644
--- a/protocols/SkypeWeb/src/skype_utils.cpp
+++ b/protocols/SkypeWeb/src/skype_utils.cpp
@@ -195,6 +195,27 @@ char *CSkypeProto::SelfUrlToName(const char *url)
return tempname;
}
+char *CSkypeProto::ChatUrlToName(const char *url)
+{
+ char *tempname = NULL;
+ const char *start, *end;
+ start = strstr(url, "/19:");
+
+ if (!start)
+ return NULL;
+ start = start + 4;
+ if ((end = strchr(start, '/')))
+ {
+ mir_free(tempname);
+ tempname = mir_strndup(start, end - start);
+ return tempname;
+ }
+ mir_free(tempname);
+ tempname = mir_strdup(start);
+
+ return tempname;
+}
+
char *CSkypeProto::GetServerFromUrl(const char *url)
{
char *tempname = NULL;