diff options
author | George Hazan <george.hazan@gmail.com> | 2016-04-20 18:22:25 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-04-20 18:22:25 +0000 |
commit | db5312c78cd0b6579395ea2f57ee8936bec412f9 (patch) | |
tree | 6943ac622098f9de1f6e0ba43f104cb552c09f66 /plugins/Clist_nicer | |
parent | 7055688aed957bfd04a300bdda0eb0a759761a89 (diff) |
fix for offline contacts in clist_nicer
git-svn-id: http://svn.miranda-ng.org/main/trunk@16724 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer')
-rw-r--r-- | plugins/Clist_nicer/src/clc.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
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"))
|