diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-03 13:37:13 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-03 13:37:13 +0300 |
commit | 66b61f42871089f3962920924f9030cd6dff2ad8 (patch) | |
tree | bfa19d1db1c84a841dd1e6ea258ae1d9212d2ada /src/core/stdaway | |
parent | dfe4c13573386072b6fcf177e8f52fafc81891f1 (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 'src/core/stdaway')
-rw-r--r-- | src/core/stdaway/src/sendmsg.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/stdaway/src/sendmsg.cpp b/src/core/stdaway/src/sendmsg.cpp index 14ec7baffb..52b727f8fe 100644 --- a/src/core/stdaway/src/sendmsg.cpp +++ b/src/core/stdaway/src/sendmsg.cpp @@ -178,10 +178,10 @@ void ChangeAllProtoMessages(char *szProto, int statusMode, wchar_t *msg) for (int i = 0; i < nAccounts; i++) {
PROTOACCOUNT *pa = accounts[i];
- if (!Proto_IsAccountEnabled(pa))
+ if (!pa->IsEnabled())
continue;
- if ((CallProtoService(pa->szModuleName, PS_GETCAPS, PFLAGNUM_1, 0) & PF1_MODEMSGSEND) && !Proto_IsAccountLocked(pa))
+ if ((CallProtoService(pa->szModuleName, PS_GETCAPS, PFLAGNUM_1, 0) & PF1_MODEMSGSEND) && !pa->IsLocked())
CallProtoService(pa->szModuleName, PS_SETAWAYMSG, statusMode, (LPARAM)msg);
}
}
@@ -540,7 +540,7 @@ static int AwayMsgSendAccountsChanged(WPARAM, LPARAM) PROTOACCOUNT **accounts;
Proto_EnumAccounts(&nAccounts, &accounts);
for (int i = 0; i < nAccounts; i++) {
- if (!Proto_IsAccountEnabled(accounts[i]))
+ if (!accounts[i]->IsEnabled())
continue;
protoModeMsgFlags |= CallProtoService(accounts[i]->szModuleName, PS_GETCAPS, PFLAGNUM_3, 0);
|