diff options
author | George Hazan <george.hazan@gmail.com> | 2014-04-08 17:54:19 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-04-08 17:54:19 +0000 |
commit | 78dc54f9e392b45492a2b726d6268c41f594eb41 (patch) | |
tree | fa1180153a3ac3610f22ad9f7b002d2a348c2ea5 /plugins/Clist_nicer/src | |
parent | afa73da4259ee9a00e60570031f94338542636d8 (diff) |
bunch of mc related fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@8892 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src')
-rw-r--r-- | plugins/Clist_nicer/src/clc.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/Clist_nicer/src/clc.cpp b/plugins/Clist_nicer/src/clc.cpp index a4aecd563b..1352de08ad 100644 --- a/plugins/Clist_nicer/src/clc.cpp +++ b/plugins/Clist_nicer/src/clc.cpp @@ -563,12 +563,10 @@ LBL_Def: if (!FindItem(hwnd, dat, (HANDLE)hContact, &contact, NULL, NULL)) {
p = cfg::getCache(hContact, szProto);
if (!dat->bisEmbedded && szProto) { // may be a subcontact, forward the xstatus
- if (db_mc_isSub(hContact)) {
- MCONTACT hMasterContact = (MCONTACT)cfg::getDword(hContact, META_PROTO, "Handle", 0);
- if (hMasterContact && hMasterContact != hContact) // avoid recursive call of settings handler
- cfg::writeByte(hMasterContact, META_PROTO, "XStatusId", (BYTE)cfg::getByte(hContact, szProto, "XStatusId", 0));
- break;
- }
+ MCONTACT hMasterContact = db_mc_getMeta(hContact);
+ if (hMasterContact && hMasterContact != hContact) // avoid recursive call of settings handler
+ cfg::writeByte(hMasterContact, META_PROTO, "XStatusId", (BYTE)cfg::getByte(hContact, szProto, "XStatusId", 0));
+ break;
}
}
else {
|