summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-01-28 20:34:48 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-01-28 20:34:48 +0300
commit8087984bd9b53683708f83e3b12c30cd060e0984 (patch)
tree23d0336f551d5210c38d752e19c241c1e91bdff9 /protocols/ICQ-WIM
parentc8068f6bca4dd5c80bb0de13a2b7b92d16b83117 (diff)
ICQ-WIM: fix to view our own details
Diffstat (limited to 'protocols/ICQ-WIM')
-rw-r--r--protocols/ICQ-WIM/src/userinfo.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/protocols/ICQ-WIM/src/userinfo.cpp b/protocols/ICQ-WIM/src/userinfo.cpp
index 615cf44466..96595bca46 100644
--- a/protocols/ICQ-WIM/src/userinfo.cpp
+++ b/protocols/ICQ-WIM/src/userinfo.cpp
@@ -48,20 +48,23 @@ static INT_PTR CALLBACK IcqDlgProc(HWND hwndDlg, UINT msg, WPARAM, LPARAM lParam
int CIcqProto::OnUserInfoInit(WPARAM wParam, LPARAM hContact)
{
- if (!hContact || mir_strcmp(GetContactProto(hContact), m_szModuleName))
+ if (hContact && mir_strcmp(GetContactProto(hContact), m_szModuleName))
return 0;
if (isChatRoom(hContact))
return 0;
OPTIONSDIALOGPAGE odp = {};
- odp.flags = ODPF_USERINFOTAB;
+ odp.flags = ODPF_UNICODE;
odp.dwInitParam = LPARAM(this);
- odp.szTitle.a = "ICQ";
+ if (hContact == 0) {
+ odp.flags |= ODPF_DONTTRANSLATE;
+ odp.szTitle.w = m_tszUserName;
+ }
+ else odp.szTitle.w = L"ICQ";
odp.pfnDlgProc = IcqDlgProc;
odp.position = -1900000000;
- odp.szTab.a = LPGEN("Details");
odp.pszTemplate = MAKEINTRESOURCEA(IDD_INFO_ICQ);
g_plugin.addUserInfo(wParam, &odp);
return 0;