summaryrefslogtreecommitdiff
path: root/plugins/AutoShutdown/src/settingsdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AutoShutdown/src/settingsdlg.cpp')
-rw-r--r--plugins/AutoShutdown/src/settingsdlg.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/AutoShutdown/src/settingsdlg.cpp b/plugins/AutoShutdown/src/settingsdlg.cpp
index 4b0ada0354..207cdbaad2 100644
--- a/plugins/AutoShutdown/src/settingsdlg.cpp
+++ b/plugins/AutoShutdown/src/settingsdlg.cpp
@@ -54,10 +54,11 @@ static bool AnyProtoHasCaps(DWORD caps1)
{
int nProtoCount;
PROTOACCOUNT **protos;
- if (!ProtoEnumAccounts(&nProtoCount, &protos))
- for(int i=0;i<nProtoCount;++i)
- if (CallProtoService(protos[i]->szModuleName,PS_GETCAPS,(WPARAM)PFLAGNUM_1,0)&caps1)
- return true; /* CALLSERVICE_NOTFOUND also handled gracefully */
+ Proto_EnumAccounts(&nProtoCount, &protos);
+
+ for(int i=0;i<nProtoCount;++i)
+ if (CallProtoService(protos[i]->szModuleName,PS_GETCAPS,(WPARAM)PFLAGNUM_1,0)&caps1)
+ return true; /* CALLSERVICE_NOTFOUND also handled gracefully */
return false;
}