diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-11-08 09:58:54 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-11-08 09:58:54 +0000 |
commit | d0057ced529d2a09f55a900456ea858476120454 (patch) | |
tree | e642560f210fe1706dc409d423b567ceef0570d7 /protocols/VKontakte/src | |
parent | e29fd4d0ead4353ff2e03fcd793400d8e0779481 (diff) |
VKontakte: fix ‘Visit profile’ menu item for muc
git-svn-id: http://svn.miranda-ng.org/main/trunk@15698 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src')
-rw-r--r-- | protocols/VKontakte/src/vk_thread.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index 09ffbb81f7..0c8f81d0d2 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -739,6 +739,13 @@ INT_PTR __cdecl CVkProto::SvcOpenBroadcast(WPARAM hContact, LPARAM) INT_PTR __cdecl CVkProto::SvcVisitProfile(WPARAM hContact, LPARAM)
{
debugLogA("CVkProto::SvcVisitProfile");
+ if (isChatRoom(hContact)) {
+ ptrT tszHomepage(db_get_tsa(hContact, m_szModuleName, "Homepage"));
+ if(!IsEmpty(tszHomepage))
+ Utils_OpenUrlT(tszHomepage);
+ return 0;
+ }
+
LONG userID = getDword(hContact, "ID", -1);
ptrT tszDomain(db_get_tsa(hContact, m_szModuleName, "domain"));
|