From 2c62996eab8f006e64978ada3b48b8a26578bab4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 7 Sep 2013 12:16:37 +0000 Subject: MRA: - r/o server groups' support - extensive use of CMStringA - further code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@5995 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MRA/src/Mra_functions.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'protocols/MRA/src/Mra_functions.cpp') diff --git a/protocols/MRA/src/Mra_functions.cpp b/protocols/MRA/src/Mra_functions.cpp index 8d3c419bd8..66d71e5966 100644 --- a/protocols/MRA/src/Mra_functions.cpp +++ b/protocols/MRA/src/Mra_functions.cpp @@ -414,9 +414,14 @@ DWORD CMraProto::SetContactBasicInfoW(HANDLE hContact, DWORD dwSetInfoFlags, DWO mraSetStringExA(hContact, "e-mail", *szEmail); // поля изменения которых отслеживаются - if (dwFlags & SCBIF_GROUP_ID) + if (dwFlags & SCBIF_GROUP_ID) { setDword(hContact, "GroupID", dwGroupID); + MraGroupItem *grp = m_groups.find((MraGroupItem*)&dwGroupID); + if (grp) + db_set_ts(hContact, "CList", "Group", grp->m_name); + } + if ((dwFlags & SCBIF_NICK) && wszNick != NULL && !wszNick->IsEmpty()) { if ((dwFlags & SCBIF_FLAG) && ((dwContactFlag & CONTACT_FLAG_UNICODE_NAME) == 0)) DB_SetStringExA(hContact, "CList", "MyHandle", CMStringA(*wszNick)); -- cgit v1.2.3