From dd2dd9a224ea7501a99e0ae4995d8f4b8ed3b5c7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 13 Nov 2018 23:52:10 +0300 Subject: NewsAggregator -> g_plugin --- plugins/NewsAggregator/Src/Utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/NewsAggregator/Src/Utils.cpp') diff --git a/plugins/NewsAggregator/Src/Utils.cpp b/plugins/NewsAggregator/Src/Utils.cpp index 4ff53e658d..c18fe3fe54 100644 --- a/plugins/NewsAggregator/Src/Utils.cpp +++ b/plugins/NewsAggregator/Src/Utils.cpp @@ -72,7 +72,7 @@ void GetNewsData(wchar_t *tszUrl, char **szData, MCONTACT hContact, CFeedEditor nlhr.headers[3].szName = "Connection"; nlhr.headers[3].szValue = "close"; char auth[256]; - if (db_get_b(hContact, MODULENAME, "UseAuth", 0) || (pEditDlg && pEditDlg->m_useauth.IsChecked()) /*IsDlgButtonChecked(hwndDlg, IDC_USEAUTH)*/) { + if (g_plugin.getByte(hContact, "UseAuth", 0) || (pEditDlg && pEditDlg->m_useauth.IsChecked()) /*IsDlgButtonChecked(hwndDlg, IDC_USEAUTH)*/) { nlhr.headersCount++; nlhr.headers[4].szName = "Authorization"; @@ -430,7 +430,7 @@ LPCTSTR ClearText(CMStringW &result, const wchar_t *message) MCONTACT GetContactByNick(const wchar_t *nick) { for (auto &hContact : Contacts(MODULENAME)) { - ptrW contactNick(::db_get_wsa(hContact, MODULENAME, "Nick")); + ptrW contactNick(g_plugin.getWStringA(hContact, "Nick")); if (!mir_wstrcmpi(contactNick, nick)) return hContact; } @@ -440,7 +440,7 @@ MCONTACT GetContactByNick(const wchar_t *nick) MCONTACT GetContactByURL(const wchar_t *url) { for (auto &hContact : Contacts(MODULENAME)) { - ptrW contactURL(::db_get_wsa(hContact, MODULENAME, "URL")); + ptrW contactURL(g_plugin.getWStringA(hContact, "URL")); if (!mir_wstrcmpi(contactURL, url)) return hContact; } -- cgit v1.2.3