summaryrefslogtreecommitdiff
path: root/plugins/StatusManager/src/commonstatus.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-02-16 13:48:20 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-02-16 13:48:20 +0300
commit8543dfc47441a07bf97a24a6ddd5063515d05763 (patch)
tree64da4c6a4aa2fc6fb0e1c7e09bff4a6082601a99 /plugins/StatusManager/src/commonstatus.cpp
parent779a717af48dba984da1fbab476c241fc0732e9d (diff)
fix for StatusManager & Weather (also removes old crutch with PF2_NONE)
Diffstat (limited to 'plugins/StatusManager/src/commonstatus.cpp')
-rw-r--r--plugins/StatusManager/src/commonstatus.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/StatusManager/src/commonstatus.cpp b/plugins/StatusManager/src/commonstatus.cpp
index 7e83949b55..eaa5325616 100644
--- a/plugins/StatusManager/src/commonstatus.cpp
+++ b/plugins/StatusManager/src/commonstatus.cpp
@@ -298,8 +298,10 @@ static INT_PTR GetProtocolCountService(WPARAM, LPARAM)
int GetStatusFlags(const char *szProto)
{
- int flags = CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_2, 0) & ~CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_5, 0);
- if (flags == 0)
+ auto f2 = CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_2, 0);
+ auto f5 = CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_5, 0);
+ int flags = f2 & ~f5;
+ if (flags == 0 && f5)
flags = PF2_ONLINE;
return flags;