summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-06-13 00:03:40 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-06-13 00:03:40 +0300
commit1723a03ef74caa86cbfde4144541afb92147395f (patch)
tree026a6b7c0331e661dc47eac592f3e26e18cd4417
parent9e03ccf552848ea74aee686d95b81914e136ce7b (diff)
MRA: more logs
-rw-r--r--protocols/MRA/src/MraSendCommand.cpp5
-rw-r--r--protocols/MRA/src/Mra_functions.cpp1
-rw-r--r--protocols/MRA/src/Mra_svcs.cpp2
3 files changed, 7 insertions, 1 deletions
diff --git a/protocols/MRA/src/MraSendCommand.cpp b/protocols/MRA/src/MraSendCommand.cpp
index 8e26f28364..2f9d5f8db4 100644
--- a/protocols/MRA/src/MraSendCommand.cpp
+++ b/protocols/MRA/src/MraSendCommand.cpp
@@ -237,7 +237,10 @@ DWORD CMraProto::MraModifyContact(MCONTACT hContact, DWORD *pdwID, DWORD *pdwCon
buf.SetUL(dwID);
buf.SetUL(dwContactFlag | CONTACT_FLAG_UNICODE_NAME);
buf.SetUL(dwGroupID);
- buf.SetLPSLowerCase(szEmail);
+ if (hContact)
+ buf.SetLPSLowerCase(szEmail);
+ else
+ buf.SetLPSW(wszCustomName);
buf.SetLPSW(wszCustomName);
buf.SetLPS(szPhones);
diff --git a/protocols/MRA/src/Mra_functions.cpp b/protocols/MRA/src/Mra_functions.cpp
index d3d6886d38..d6ca2c6574 100644
--- a/protocols/MRA/src/Mra_functions.cpp
+++ b/protocols/MRA/src/Mra_functions.cpp
@@ -867,6 +867,7 @@ void CMraProto::ShowFormattedErrorMessage(LPWSTR lpwszErrText, DWORD dwErrorCode
szErrDescription[dwErrDescriptionSize] = 0;
mir_snwprintf(szErrorText, L"%s %lu: %s", TranslateW(lpwszErrText), dwErrorCode, szErrDescription);
}
+ debugLogA("Error happened: %S", szErrorText);
MraPopupShowFromAgentW(MRA_POPUP_TYPE_ERROR, szErrorText);
}
diff --git a/protocols/MRA/src/Mra_svcs.cpp b/protocols/MRA/src/Mra_svcs.cpp
index 7f8405ebd0..dc40f9f915 100644
--- a/protocols/MRA/src/Mra_svcs.cpp
+++ b/protocols/MRA/src/Mra_svcs.cpp
@@ -641,10 +641,12 @@ int CMraProto::OnGroupChanged(WPARAM hContact, LPARAM lParam)
if (cgc->pszOldName == nullptr)
return 0;
+ debugLogA("removing group %S", cgc->pszOldName);
MraGroupItem *pGrp = nullptr;
for (auto &it : m_groups) {
if (!mir_wstrcmp(it->m_name, cgc->pszOldName)) {
pGrp = it;
+ debugLogA("found a group at the server, idx = %d", it->m_id);
break;
}
}