summaryrefslogtreecommitdiff
path: root/plugins/NewsAggregator/Src/Utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-20 15:08:48 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-20 15:08:48 +0300
commit8a74e7495ce5ad39de4f5c25121a84d35df90c36 (patch)
tree03e5b4870f09a3163306740c2eebee47bc15b042 /plugins/NewsAggregator/Src/Utils.cpp
parentc5bf7d6123dd1c3b82ccb8fdb1b068077e9d56d4 (diff)
CMPlugin to receive a reference to PLUGININFOEX
Diffstat (limited to 'plugins/NewsAggregator/Src/Utils.cpp')
-rw-r--r--plugins/NewsAggregator/Src/Utils.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/NewsAggregator/Src/Utils.cpp b/plugins/NewsAggregator/Src/Utils.cpp
index 56a5a99182..47d97495d0 100644
--- a/plugins/NewsAggregator/Src/Utils.cpp
+++ b/plugins/NewsAggregator/Src/Utils.cpp
@@ -26,7 +26,7 @@ bool UpdateListFlag = FALSE;
bool IsMyContact(MCONTACT hContact)
{
const char *szProto = GetContactProto(hContact);
- return szProto != nullptr && mir_strcmp(MODULE, szProto) == 0;
+ return szProto != nullptr && mir_strcmp(MODULENAME, szProto) == 0;
}
void NetlibInit()
@@ -34,7 +34,7 @@ void NetlibInit()
NETLIBUSER nlu = {};
nlu.flags = NUF_OUTGOING | NUF_INCOMING | NUF_HTTPCONNS | NUF_UNICODE;
nlu.szDescriptiveName.w = TranslateT("NewsAggregator HTTP connection");
- nlu.szSettingsModule = MODULE;
+ nlu.szSettingsModule = MODULENAME;
hNetlibUser = Netlib_RegisterUser(&nlu);
}
@@ -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, MODULE, "UseAuth", 0) || (pEditDlg && pEditDlg->m_useauth.IsChecked()) /*IsDlgButtonChecked(hwndDlg, IDC_USEAUTH)*/) {
+ if (db_get_b(hContact, MODULENAME, "UseAuth", 0) || (pEditDlg && pEditDlg->m_useauth.IsChecked()) /*IsDlgButtonChecked(hwndDlg, IDC_USEAUTH)*/) {
nlhr.headersCount++;
nlhr.headers[4].szName = "Authorization";
@@ -429,8 +429,8 @@ LPCTSTR ClearText(CMStringW &result, const wchar_t *message)
MCONTACT GetContactByNick(const wchar_t *nick)
{
- for (auto &hContact : Contacts(MODULE)) {
- ptrW contactNick(::db_get_wsa(hContact, MODULE, "Nick"));
+ for (auto &hContact : Contacts(MODULENAME)) {
+ ptrW contactNick(::db_get_wsa(hContact, MODULENAME, "Nick"));
if (!mir_wstrcmpi(contactNick, nick))
return hContact;
}
@@ -439,8 +439,8 @@ MCONTACT GetContactByNick(const wchar_t *nick)
MCONTACT GetContactByURL(const wchar_t *url)
{
- for (auto &hContact : Contacts(MODULE)) {
- ptrW contactURL(::db_get_wsa(hContact, MODULE, "URL"));
+ for (auto &hContact : Contacts(MODULENAME)) {
+ ptrW contactURL(::db_get_wsa(hContact, MODULENAME, "URL"));
if (!mir_wstrcmpi(contactURL, url))
return hContact;
}