summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_feed.cpp
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2017-01-10 13:17:53 +0500
committerElzorFox <elzorfox@ya.ru>2017-01-10 13:17:53 +0500
commit77cccf9d4b13d9fad437eaf6361cec016a4ce27c (patch)
treea18f22cccead332e7eca0ec5418c5dd8f2348c29 /protocols/VKontakte/src/vk_feed.cpp
parentf124c479945d8d0db785b4259a2f41e2998fac73 (diff)
VKontakte: no more write to db if oldValue == newValue
Diffstat (limited to 'protocols/VKontakte/src/vk_feed.cpp')
-rw-r--r--protocols/VKontakte/src/vk_feed.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/vk_feed.cpp b/protocols/VKontakte/src/vk_feed.cpp
index ac23773168..85dcdd5343 100644
--- a/protocols/VKontakte/src/vk_feed.cpp
+++ b/protocols/VKontakte/src/vk_feed.cpp
@@ -40,10 +40,8 @@ void CVkProto::AddFeedSpecialUser()
setWString(hContact, "Homepage", L"https://vk.com/feed");
}
- if (getWord(hContact, "Status") != ID_STATUS_ONLINE)
- setWord(hContact, "Status", ID_STATUS_ONLINE);
+ DBSetWord(hContact, "Status", ID_STATUS_ONLINE, ID_STATUS_OFFLINE);
SetMirVer(hContact, 7);
-
}
void CVkProto::AddFeedEvent(CVKNewsItem& vkNewsItem)