summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_chats.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-04-07 13:32:34 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-04-07 13:32:34 +0000
commit4056ab703967ccbba528aebc93802f732ae13884 (patch)
tree3dc1984ed3fa17e48260ad9921f2377179a3c65c /protocols/SkypeWeb/src/skype_chats.cpp
parent4e67bd6db63fbd628fb3db7ad73b784b7a2a0036 (diff)
SkypeWeb: Chats support part 1.1.
git-svn-id: http://svn.miranda-ng.org/main/trunk@12651 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_chats.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_chats.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/skype_chats.cpp b/protocols/SkypeWeb/src/skype_chats.cpp
index ff3cbc607f..db3f37e8f2 100644
--- a/protocols/SkypeWeb/src/skype_chats.cpp
+++ b/protocols/SkypeWeb/src/skype_chats.cpp
@@ -24,4 +24,15 @@ MCONTACT CSkypeProto::AddChatRoom(const char *chatname)
setByte(hContact, "ChatRoom", 1);
}
return hContact;
+}
+
+void CSkypeProto::SetChatStatus(MCONTACT hContact, int iStatus)
+{
+ ptrT tszChatID(getTStringA(hContact, "ChatID"));
+ if (tszChatID == NULL)
+ return;
+
+ GCDEST gcd = { m_szModuleName, tszChatID, GC_EVENT_CONTROL };
+ GCEVENT gce = { sizeof(gce), &gcd };
+ CallServiceSync(MS_GC_EVENT, (iStatus == ID_STATUS_OFFLINE) ? SESSION_OFFLINE : SESSION_ONLINE, (LPARAM)&gce);
} \ No newline at end of file