summaryrefslogtreecommitdiff
path: root/protocols/MRA/src/Mra_functions.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-09-07 12:16:37 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-09-07 12:16:37 +0000
commit2c62996eab8f006e64978ada3b48b8a26578bab4 (patch)
tree8ec36ff744dc4ca7bbce2237609cec3ccf780a9a /protocols/MRA/src/Mra_functions.cpp
parent03a0b643b94d5aa7f9c129fe73eea314d099cf56 (diff)
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
Diffstat (limited to 'protocols/MRA/src/Mra_functions.cpp')
-rw-r--r--protocols/MRA/src/Mra_functions.cpp7
1 files changed, 6 insertions, 1 deletions
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));