summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/clist/protocolorder.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/clist/protocolorder.cpp b/src/modules/clist/protocolorder.cpp
index 3aae5a685f..b74ef1105d 100644
--- a/src/modules/clist/protocolorder.cpp
+++ b/src/modules/clist/protocolorder.cpp
@@ -125,7 +125,11 @@ int FillTree(HWND hwnd)
continue;
PROTOACCOUNT *pa = accounts[idx];
- if ( !cli.pfnGetProtocolVisibility(pa->szModuleName))
+ if ( !Proto_IsAccountEnabled(pa))
+ continue;
+
+ PROTOCOLDESCRIPTOR *pd = Proto_IsProtocolLoaded(pa->szProtoName);
+ if (pd == NULL || pd->type != PROTOTYPE_PROTOCOL)
continue;
ProtocolData *PD = (ProtocolData*)mir_alloc(sizeof(ProtocolData));