summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_chatrooms.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-04-25 19:17:44 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-04-25 19:17:44 +0000
commit5c131b167713e3f44e00a96cdbee389c7bddc760 (patch)
treeec36ca5f1d08fc5571bd91119af37de4c71b463e /protocols/SkypeWeb/src/skype_chatrooms.cpp
parent1d14eafc4f0cf923e5bc835ae5c09c4b75c76b85 (diff)
SkypeWeb: DestroyChatRoom menu item.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13147 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_chatrooms.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_chatrooms.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/skype_chatrooms.cpp b/protocols/SkypeWeb/src/skype_chatrooms.cpp
index 8b9e18e3fe..769c42b5da 100644
--- a/protocols/SkypeWeb/src/skype_chatrooms.cpp
+++ b/protocols/SkypeWeb/src/skype_chatrooms.cpp
@@ -258,6 +258,21 @@ INT_PTR CSkypeProto::OnLeaveChatRoom(WPARAM hContact, LPARAM)
return 0;
}
+INT_PTR CSkypeProto::SvcDestroyChat(WPARAM hContact, LPARAM)
+{
+ debugLogA("CVkProto::SvcDestroyKickChat");
+ if (!IsOnline())
+ return 1;
+
+ ptrA chatId(db_get_sa(hContact, m_szModuleName, SKYPE_SETTINGS_ID));
+
+ SendRequest(new KickUserRequest(RegToken, chatId, SelfSkypeName, Server));
+
+ CallService(MS_DB_CONTACT_DELETE, (WPARAM)hContact, 0);
+
+ return 0;
+}
+
/* CHAT EVENT */
void CSkypeProto::OnChatEvent(JSONNODE *node)