diff options
Diffstat (limited to 'plugins/NewsAggregator/Src/Utils.cpp')
-rw-r--r-- | plugins/NewsAggregator/Src/Utils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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;
}
|