summaryrefslogtreecommitdiff
path: root/plugins/NewXstatusNotify
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-03 13:37:13 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-03 13:37:13 +0300
commit66b61f42871089f3962920924f9030cd6dff2ad8 (patch)
treebfa19d1db1c84a841dd1e6ea258ae1d9212d2ada /plugins/NewXstatusNotify
parentdfe4c13573386072b6fcf177e8f52fafc81891f1 (diff)
CLIST_INTERFACE:
- unused members removed (requires new History++ for people who compile Miranda themselves); - useless helpers Proto_IsAccountEnabled & Proto_IsProtocolLocked replaced with direct calls of PROTOACCOUNT members IsEnabled & IsLocked respectively; - static interface member pfnGetProtocolVisibility replaced with static function Clist_GetProtocolVisibility or PROTOACCOUNT::IsVisible when possible
Diffstat (limited to 'plugins/NewXstatusNotify')
-rw-r--r--plugins/NewXstatusNotify/src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/NewXstatusNotify/src/main.cpp b/plugins/NewXstatusNotify/src/main.cpp
index 7345ebb3e0..46660e1545 100644
--- a/plugins/NewXstatusNotify/src/main.cpp
+++ b/plugins/NewXstatusNotify/src/main.cpp
@@ -1140,7 +1140,7 @@ int ModulesLoaded(WPARAM, LPARAM)
PROTOACCOUNT **accounts = nullptr;
Proto_EnumAccounts(&count, &accounts);
for (int i = 0; i < count; i++)
- if (Proto_IsAccountEnabled(accounts[i]))
+ if (accounts[i]->IsEnabled())
db_set_b(NULL, MODULE, accounts[i]->szModuleName, 0);
return 0;