From 83310365c69bd40365ee0ae0e16c99c28e24cd0b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 19 Jun 2015 14:24:12 +0000 Subject: - all static protocol services replaced with functions; - m_protomod.h removed as useless git-svn-id: http://svn.miranda-ng.org/main/trunk@14260 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/StopSpamMod/src/options.cpp | 16 +++++++--------- plugins/StopSpamMod/src/utilities.cpp | 2 +- 2 files changed, 8 insertions(+), 10 deletions(-) (limited to 'plugins/StopSpamMod/src') diff --git a/plugins/StopSpamMod/src/options.cpp b/plugins/StopSpamMod/src/options.cpp index 8ca2b6fca7..e26d2749a4 100755 --- a/plugins/StopSpamMod/src/options.cpp +++ b/plugins/StopSpamMod/src/options.cpp @@ -148,16 +148,14 @@ INT_PTR CALLBACK ProtoDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) switch(msg) { case WM_INITDIALOG: - { - TranslateDialogDefault(hwnd); - int n; - PROTOACCOUNT **pppd; - if(!ProtoEnumAccounts(&n, &pppd)) - for (int i = 0; i < n; ++i) { - SendDlgItemMessageA(hwnd, (ProtoInList(pppd[i]->szModuleName) ? ID_USEDPROTO : ID_ALLPROTO), LB_ADDSTRING, 0, (LPARAM)pppd[i]->szModuleName); - } - } + TranslateDialogDefault(hwnd); + int n; + PROTOACCOUNT **pppd; + Proto_EnumAccounts(&n, &pppd); + for (int i = 0; i < n; ++i) + SendDlgItemMessageA(hwnd, (ProtoInList(pppd[i]->szModuleName) ? ID_USEDPROTO : ID_ALLPROTO), LB_ADDSTRING, 0, (LPARAM)pppd[i]->szModuleName); return TRUE; + case WM_COMMAND: switch(LOWORD(wParam)) { diff --git a/plugins/StopSpamMod/src/utilities.cpp b/plugins/StopSpamMod/src/utilities.cpp index 5474b3bab3..8c67f36c0e 100755 --- a/plugins/StopSpamMod/src/utilities.cpp +++ b/plugins/StopSpamMod/src/utilities.cpp @@ -342,7 +342,7 @@ void CleanThread() std::list protocols; int count = 0; PROTOACCOUNT **accounts; - ProtoEnumAccounts(&count, &accounts); + Proto_EnumAccounts(&count, &accounts); for(int i = 0; i < count; i++) { if(!strstr(accounts[i]->szModuleName, "MetaContacts") && !strstr(accounts[i]->szModuleName, "Weather")) //not real protocols -- cgit v1.2.3