From db5312c78cd0b6579395ea2f57ee8936bec412f9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 20 Apr 2016 18:22:25 +0000 Subject: fix for offline contacts in clist_nicer git-svn-id: http://svn.miranda-ng.org/main/trunk@16724 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_nicer/src/clc.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/Clist_nicer/src/clc.cpp b/plugins/Clist_nicer/src/clc.cpp index 82d65461ea..18bf3bb33f 100644 --- a/plugins/Clist_nicer/src/clc.cpp +++ b/plugins/Clist_nicer/src/clc.cpp @@ -130,7 +130,16 @@ static int ClcSettingChanged(WPARAM hContact, LPARAM lParam) // something is being written to a protocol module if (!__strcmp(szProto, cws->szModule)) { // was a unique setting key written? - pcli->pfnInvalidateDisplayNameCacheEntry(hContact); + if (!__strcmp(cws->szSetting, "Status")) { + if (!cfg::getByte(hContact, "CList", "Hidden", 0)) + if (cws->value.wVal == ID_STATUS_OFFLINE) + if (cfg::getByte("CList", "HideOffline", SETTING_HIDEOFFLINE_DEFAULT)) + return 0; + + SendMessage(pcli->hwndContactTree, INTM_STATUSCHANGED, hContact, lParam); + return 0; + } + if (strstr("YMsg|StatusDescr|XStatusMsg", cws->szSetting)) SendMessage(pcli->hwndContactTree, INTM_STATUSMSGCHANGED, hContact, lParam); else if (strstr(cws->szSetting, "XStatus")) -- cgit v1.2.3