diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-06-17 11:29:12 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-06-17 11:29:12 +0000 |
commit | e797100e1670badf45c6847a5bd2e4d293cf3354 (patch) | |
tree | dc64393cbe724fe98ad3c3f5f8dda2c6fa310e04 /protocols | |
parent | 43ec2293b69ed3eab4140c7bc49ae5b0d2799a09 (diff) |
VKontakte: add profile link in muc actions
git-svn-id: http://svn.miranda-ng.org/main/trunk@14233 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/VKontakte/src/vk_chats.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/VKontakte/src/vk_chats.cpp b/protocols/VKontakte/src/vk_chats.cpp index cf3328065d..35c5be076d 100644 --- a/protocols/VKontakte/src/vk_chats.cpp +++ b/protocols/VKontakte/src/vk_chats.cpp @@ -314,16 +314,16 @@ void CVkProto::AppendChatMessage(int id, const JSONNode &jnMsg, bool bIsHistory) CMString tszUid;
tszUid.AppendFormat(_T("%d"), uid);
if (tszUid == tszActionMid)
- tszBody = TranslateT("left chat");
+ tszBody.AppendFormat(_T(" (https://vk.com/id%s) %s"), tszUid, TranslateT("left chat"));
else {
int a_uid = 0;
int iReadCount = _stscanf(tszActionMid, _T("%d"), &a_uid);
if (iReadCount == 1) {
CVkChatUser *cu = cc->m_users.find((CVkChatUser*)&a_uid);
if (cu == NULL)
- tszBody = TranslateT("kick user");
+ tszBody = TranslateT("kick user (https://vk.com/id%d)", a_uid);
else
- tszBody.AppendFormat(_T("%s %s"), TranslateT("kick user"), cu->m_tszNick);
+ tszBody.AppendFormat(_T("%s %s (https://vk.com/id%d)"), TranslateT("kick user"), cu->m_tszNick, a_uid);
}
else
tszBody = TranslateT("kick user");
@@ -340,9 +340,9 @@ void CVkProto::AppendChatMessage(int id, const JSONNode &jnMsg, bool bIsHistory) if (iReadCount == 1) {
CVkChatUser *cu = cc->m_users.find((CVkChatUser*)&a_uid);
if (cu == NULL)
- tszBody.AppendFormat(_T("%s https://vk.com/id%d"), TranslateT("invite user"), a_uid);
+ tszBody.AppendFormat(_T("%s (https://vk.com/id%d)"), TranslateT("invite user"), a_uid);
else
- tszBody.AppendFormat(_T("%s %s"), TranslateT("invite user"), cu->m_tszNick);
+ tszBody.AppendFormat(_T("%s %s (https://vk.com/id%d)"), TranslateT("invite user"), cu->m_tszNick, a_uid);
}
else
tszBody = TranslateT("invite user");
|