summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_proto.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-12-26 07:48:02 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-12-26 07:48:02 +0000
commit53e54f19ecbcd12202473505dd12cea27b453f2c (patch)
treeadce7986ea2f73d3b84c8a30939c5c71f8148431 /protocols/VKontakte/src/vk_proto.cpp
parentefee96cfd3e6318ed376363ab9781bd944940107 (diff)
VKontakte: add filtering by type and source content for news
git-svn-id: http://svn.miranda-ng.org/main/trunk@11642 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.cpp')
-rw-r--r--protocols/VKontakte/src/vk_proto.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp
index 9ca06e231a..61c11dde35 100644
--- a/protocols/VKontakte/src/vk_proto.cpp
+++ b/protocols/VKontakte/src/vk_proto.cpp
@@ -84,9 +84,20 @@ CVkProto::CVkProto(const char *szModuleName, const TCHAR *ptszUserName) :
m_iNotificationsInterval = getDword("NotificationsInterval", 1);
m_iIMGBBCSupport = getByte("IMGBBCSupport", 0);
m_iBBCForNews = getByte("BBCForNews", 0);
- m_bNewsAutoClearHistory = getBool("NewsAutoClearHistory", 0);
+ m_bNewsAutoClearHistory = getBool("NewsAutoClearHistory", false);
m_iNewsAutoClearHistoryInterval = getDword("NewsAutoClearHistoryInterval", 60*60*24*3);
+ m_bNewsFilterPosts = getBool("NewsFilterPosts", true);
+ m_bNewsFilterPhotos = getBool("NewsFilterPhotos", true);
+ m_bNewsFilterTags = getBool("NewsFilterTags", true);
+ m_bNewsFilterWallPhotos = getBool("NewsFilterWallPhotos", true);
+ m_bNewsSourceFriends = getBool("NewsSourceFriends", true);
+ m_bNewsSourceGroups = getBool("NewsSourceGroups", true);
+ m_bNewsSourcePages = getBool("NewsSourcePages", true);
+ m_bNewsSourceFollowing = getBool("NewsSourceFollowing", true);
+ m_bNewsSourceIncludeBanned = getBool("NewsSourceIncludeBanned", false);
+ m_bNewsSourceNoReposts = getBool("NewsSourceNoReposts", false);
+
// Set all contacts offline -- in case we crashed
SetAllContactStatuses(ID_STATUS_OFFLINE);
vk_Instances.insert(this);