summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-02 16:32:21 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-02 16:32:21 +0300
commit3876f9c668826a2da2f306683fff6243fa522c4e (patch)
treefbb444f9a43302331e694253bd80cabacd9c4bfd /plugins
parent539586996ab793264744b580e808140da439a22e (diff)
Clist_modern: unloaded protos not to be included into expanded subs too
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Clist_modern/src/modern_clcitems.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Clist_modern/src/modern_clcitems.cpp b/plugins/Clist_modern/src/modern_clcitems.cpp
index 7e8cccfdd3..557f4edbe3 100644
--- a/plugins/Clist_modern/src/modern_clcitems.cpp
+++ b/plugins/Clist_modern/src/modern_clcitems.cpp
@@ -47,8 +47,10 @@ void AddSubcontacts(ClcData *dat, ClcContact *cont, BOOL showOfflineHereGroup)
continue;
ClcCacheEntry *pdnce = pcli->pfnGetCacheEntry(hsub);
- WORD wStatus = pdnce->getStatus();
+ if (pdnce->szProto == nullptr)
+ continue;
+ WORD wStatus = pdnce->getStatus();
if (!showOfflineHereGroup && bHideOffline && !pdnce->m_bNoHiddenOffline && wStatus == ID_STATUS_OFFLINE)
continue;