diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-06-17 13:10:18 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-06-17 13:10:18 +0000 |
commit | a9d1aea2fb0c65e0b745e22bc77fc1bf01f008c7 (patch) | |
tree | ab6f734bcb559994200201950b995377efb5aa1c /protocols/VKontakte | |
parent | 2288ec691478a1da4bdd9d2e69842835256d230f (diff) |
VKontakte:add 'visit profile' for muc users
git-svn-id: http://svn.miranda-ng.org/main/trunk@14235 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r-- | protocols/VKontakte/src/vk_chats.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
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 }
};
|