summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_clistsettings.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-04-06 17:34:02 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-04-06 17:34:02 +0000
commit991ef9603c47195bc97f81ddb4c107c7ce107b77 (patch)
treefb389501c23c30dfee9f42f29102e09ef852f620 /plugins/Clist_modern/src/modern_clistsettings.cpp
parentcf58f7e225f5498d00c402a42303b2738da17672 (diff)
fix for metacontacts statuses in clist
git-svn-id: http://svn.miranda-ng.org/main/trunk@16598 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_clistsettings.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_clistsettings.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Clist_modern/src/modern_clistsettings.cpp b/plugins/Clist_modern/src/modern_clistsettings.cpp
index 3f0a92f59d..70e2a40fce 100644
--- a/plugins/Clist_modern/src/modern_clistsettings.cpp
+++ b/plugins/Clist_modern/src/modern_clistsettings.cpp
@@ -35,7 +35,6 @@ static int displayNameCacheSize;
LIST<ClcCacheEntry> clistCache(50, NumericKeySortT);
-int GetStatusForContact(MCONTACT hContact, char *szProto);
TCHAR* UnknownConctactTranslatedName = NULL;
void InitDisplayNameCache(void)
@@ -309,6 +308,7 @@ int ContactSettingChanged(WPARAM hContact, LPARAM lParam)
DBCONTACTWRITESETTING *cws = (DBCONTACTWRITESETTING*)lParam;
if (!strcmp(cws->szModule, pdnce->m_pszProto)) {
if (!strcmp(cws->szSetting, "Status") || wildcmp(cws->szSetting, "Status?")) {
+ pdnce->m_iStatus = cws->value.wVal;
if (!strcmp(cws->szModule, META_PROTO) && strcmp(cws->szSetting, "Status")) {
if (pcli->hwndContactTree && g_flag_bOnModulesLoadedCalled)
pcli->pfnInitAutoRebuild(pcli->hwndContactTree);
@@ -322,7 +322,6 @@ int ContactSettingChanged(WPARAM hContact, LPARAM lParam)
if (pdnce->bIsHidden)
return 0;
- pdnce->m_iStatus = cws->value.wVal;
if (cws->value.wVal == ID_STATUS_OFFLINE)
if (g_CluiData.bRemoveAwayMessageForOffline)
db_set_s(hContact, "CList", "StatusMsg", "");