summaryrefslogtreecommitdiff
path: root/protocols/NewsAggregator/Src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-21 19:02:12 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-21 19:02:12 +0300
commita4c4e3fc08395be5fc83b6f36fc1be07dbe5b245 (patch)
tree460b1564a6981e862093eed9d6cfa7c7234085d1 /protocols/NewsAggregator/Src
parentee23690fa6c847a5284f8145e73328cdaab2b617 (diff)
fixes #3945 (Плагины сообщений: скрывать элементы окна в зависимости от типа привата)
Diffstat (limited to 'protocols/NewsAggregator/Src')
-rw-r--r--protocols/NewsAggregator/Src/Options.cpp2
-rw-r--r--protocols/NewsAggregator/Src/Services.cpp1
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);