From a9d1aea2fb0c65e0b745e22bc77fc1bf01f008c7 Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Wed, 17 Jun 2015 13:10:18 +0000 Subject: VKontakte:add 'visit profile' for muc users git-svn-id: http://svn.miranda-ng.org/main/trunk@14235 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_chats.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'protocols/VKontakte/src/vk_chats.cpp') diff --git a/protocols/VKontakte/src/vk_chats.cpp b/protocols/VKontakte/src/vk_chats.cpp index 35c5be076d..2ca030b7b5 100644 --- a/protocols/VKontakte/src/vk_chats.cpp +++ b/protocols/VKontakte/src/vk_chats.cpp @@ -21,7 +21,7 @@ enum { IDM_NONE, IDM_TOPIC, IDM_INVITE, IDM_DESTROY, - IDM_KICK, IDM_INFO + IDM_KICK, IDM_INFO, IDM_VISIT_PROFILE }; static LPCTSTR sttStatuses[] = { LPGENT("Participants"), LPGENT("Owners") }; @@ -783,6 +783,15 @@ void CVkProto::NickMenuHook(CVkChatInfo *cc, GCHOOK *gch) } CallService(MS_USERINFO_SHOWDIALOG, hContact, 0); break; + + case IDM_VISIT_PROFILE: + hContact = FindUser(cu->m_uid); + if (hContact == NULL) { + CMString tszUrl(FORMAT, _T("http://vk.com/id%d"), cu->m_uid); + CallService(MS_UTILS_OPENURL, (WPARAM)OUF_TCHAR, (LPARAM)tszUrl.GetBuffer()); + } else + SvcVisitProfile(hContact, 0); + break; case IDM_KICK: if (!IsOnline()) @@ -810,6 +819,7 @@ static gc_item sttLogListItems[] = static gc_item sttListItems[] = { { LPGENT("&User details"), IDM_INFO, MENU_ITEM }, + { LPGENT("Visit profile"), IDM_VISIT_PROFILE, MENU_ITEM }, { LPGENT("&Kick"), IDM_KICK, MENU_ITEM } }; -- cgit v1.2.3