diff options
Diffstat (limited to 'protocols/NewsAggregator/Src')
-rw-r--r-- | protocols/NewsAggregator/Src/Options.cpp | 2 | ||||
-rw-r--r-- | protocols/NewsAggregator/Src/Services.cpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/protocols/NewsAggregator/Src/Options.cpp b/protocols/NewsAggregator/Src/Options.cpp index b35585cfaa..c4c98d16ca 100644 --- a/protocols/NewsAggregator/Src/Options.cpp +++ b/protocols/NewsAggregator/Src/Options.cpp @@ -562,6 +562,7 @@ bool CImportFeed::OnApply() MCONTACT hContact = db_add_contact(); Proto_AddToContact(hContact, MODULENAME); + Contact::Readonly(hContact); g_plugin.setWString(hContact, "Nick", text); g_plugin.setWString(hContact, "URL", url); if (siteurl) @@ -771,6 +772,7 @@ bool CFeedEditor::OnApply() hContact = db_add_contact(); Proto_AddToContact(hContact, MODULENAME); g_plugin.setByte(hContact, "CheckState", 1); + Contact::Readonly(hContact); } else hContact = m_hContact; diff --git a/protocols/NewsAggregator/Src/Services.cpp b/protocols/NewsAggregator/Src/Services.cpp index a05231779a..ed4f9e49cd 100644 --- a/protocols/NewsAggregator/Src/Services.cpp +++ b/protocols/NewsAggregator/Src/Services.cpp @@ -37,6 +37,7 @@ int NewsAggrInit(WPARAM, LPARAM) mir_wstrncpy(tszRoot, VARSW(L"%miranda_userdata%\\Avatars\\" _A2W(DEFAULT_AVATARS_FOLDER)), _countof(tszRoot)); for (auto &hContact : Contacts(MODULENAME)) { + Contact::Readonly(hContact); if (!g_plugin.getByte("StartupRetrieve", 1)) g_plugin.setDword(hContact, "LastCheck", (uint32_t)time(0)); g_plugin.setWord(hContact, "Status", ID_STATUS_ONLINE); |