diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/ICQ-WIM/src/proto.cpp | 14 | ||||
-rw-r--r-- | protocols/ICQ-WIM/src/proto.h | 1 | ||||
-rw-r--r-- | protocols/ICQ-WIM/src/version.h | 4 |
3 files changed, 17 insertions, 2 deletions
diff --git a/protocols/ICQ-WIM/src/proto.cpp b/protocols/ICQ-WIM/src/proto.cpp index e08c0984ab..84839ad923 100644 --- a/protocols/ICQ-WIM/src/proto.cpp +++ b/protocols/ICQ-WIM/src/proto.cpp @@ -197,6 +197,13 @@ void CIcqProto::OnBuildProtoMenu() mi.hIcolibItem = Skin_GetIconHandle(SKINICON_OTHER_GROUP); Menu_AddProtoMenuItem(&mi, m_szModuleName); + mi.pszService = "/EditProfile"; + CreateProtoService(mi.pszService, &CIcqProto::EditProfile); + mi.name.a = LPGEN("Edit my web profile"); + mi.position = 210001; + mi.hIcolibItem = Skin_GetIconHandle(SKINICON_OTHER_MIRANDAWEB); + Menu_AddProtoMenuItem(&mi, m_szModuleName); + Menu_ShowItem(m_hUploadGroups, false); } @@ -299,6 +306,13 @@ INT_PTR CIcqProto::EditGroups(WPARAM, LPARAM) return 0; } +INT_PTR CIcqProto::EditProfile(WPARAM, LPARAM) +{ + if (mir_wstrlen(m_szOwnId)) + Utils_OpenUrlW(CMStringW(FORMAT, L"https://icq.com/people/%s/edit/", (wchar_t*)m_szOwnId)); + return 0; +} + void RefreshGroups(void) { if (CGroupEditDlg::pDlg != nullptr) diff --git a/protocols/ICQ-WIM/src/proto.h b/protocols/ICQ-WIM/src/proto.h index 7231dc3e9b..4d998cf1e2 100644 --- a/protocols/ICQ-WIM/src/proto.h +++ b/protocols/ICQ-WIM/src/proto.h @@ -411,6 +411,7 @@ class CIcqProto : public PROTO<CIcqProto> INT_PTR __cdecl CreateAccMgrUI(WPARAM, LPARAM); INT_PTR __cdecl EditGroups(WPARAM, LPARAM); + INT_PTR __cdecl EditProfile(WPARAM, LPARAM); INT_PTR __cdecl GetEmailCount(WPARAM, LPARAM); INT_PTR __cdecl GotoInbox(WPARAM, LPARAM); INT_PTR __cdecl UploadGroups(WPARAM, LPARAM); diff --git a/protocols/ICQ-WIM/src/version.h b/protocols/ICQ-WIM/src/version.h index 3ed4facd81..8b33933cb7 100644 --- a/protocols/ICQ-WIM/src/version.h +++ b/protocols/ICQ-WIM/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 96 -#define __RELEASE_NUM 1 -#define __BUILD_NUM 9 +#define __RELEASE_NUM 2 +#define __BUILD_NUM 1 #include <stdver.h> |