diff options
author | George Hazan <george.hazan@gmail.com> | 2025-02-12 16:34:45 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-02-12 16:34:45 +0300 |
commit | 0b0cecd7ce5fa91f6110f0219c58e1b2ec0c29ea (patch) | |
tree | 201ca2e07358757fcabb19055b7cb8e5d02a287b /plugins/StatusManager/src/commonstatus.cpp | |
parent | 4076a82151877a1666edeb094826fc99da4bf234 (diff) |
Status plugins to handle hidden but active protocols
Diffstat (limited to 'plugins/StatusManager/src/commonstatus.cpp')
-rw-r--r-- | plugins/StatusManager/src/commonstatus.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/StatusManager/src/commonstatus.cpp b/plugins/StatusManager/src/commonstatus.cpp index f0ffb071b6..c8ce7d10b7 100644 --- a/plugins/StatusManager/src/commonstatus.cpp +++ b/plugins/StatusManager/src/commonstatus.cpp @@ -299,7 +299,11 @@ static INT_PTR GetProtocolCountService(WPARAM, LPARAM) bool IsSuitableProto(PROTOACCOUNT *pa) { - return (pa == nullptr) ? false : pa->IsVisible(); + if (!pa || !pa->bIsVisible || !pa->IsEnabled() || !pa->ppro) + return false; + + PROTOCOLDESCRIPTOR *pd = Proto_IsProtocolLoaded(pa->szProtoName); + return (pd != nullptr && (pd->type == PROTOTYPE_PROTOCOL || pd->type == PROTOTYPE_PROTOWITHACCS)); } static int onShutdown(WPARAM, LPARAM) |