summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_thread.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-09-26 07:21:00 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-09-26 07:21:00 +0000
commit393d390d82863080d1cba91a1414c3de7912a714 (patch)
treea37ece8080a2c285b19e2713a8f1df53b8f6e6be /protocols/VKontakte/src/vk_thread.cpp
parent54cdf9dca636ade5a476d9a056d04c5e37188ace (diff)
VKontakte:
more popup classes more informative messages git-svn-id: http://svn.miranda-ng.org/main/trunk@10596 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_thread.cpp')
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp
index a52c333277..1189768c0f 100644
--- a/protocols/VKontakte/src/vk_thread.cpp
+++ b/protocols/VKontakte/src/vk_thread.cpp
@@ -923,18 +923,25 @@ void CVkProto::OnReceiveDeleteFriend(NETLIBHTTPREQUEST* reply, AsyncHttpRequest*
JSONROOT pRoot;
JSONNODE *pResponse = CheckJsonResponse(pReq, reply, pRoot);
if (pResponse != NULL) {
+ CMString tszNick = db_get_tsa(param->hContact, m_szModuleName, "Nick");
+ if (tszNick.IsEmpty())
+ tszNick = TranslateT("(Unknown contact)");
+ CMString msgformat, msg;
int iRet = json_as_int(pResponse);
switch (iRet){
case 1:
- MsgPopup(param->hContact, TranslateT("User was deleted from your friend list"), _T(""));
+ msgformat = TranslateT("User %s was deleted from your friend list");
break;
case 2:
- MsgPopup(param->hContact, TranslateT("Friend request from the user declined"), _T(""));
+ msgformat = TranslateT("Friend request from the user %s declined");
break;
case 3:
- MsgPopup(param->hContact, TranslateT("Friend request suggestion for the user deleted"), _T(""));
+ msgformat = TranslateT("Friend request suggestion for the user %s deleted");
break;
}
+
+ msg.AppendFormat(msgformat, tszNick);
+ MsgPopup(param->hContact, msg.GetBuffer(), tszNick.GetBuffer());
db_unset(param->hContact, m_szModuleName, "Auth");
}
}