summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_status.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_status.cpp
parentf124c479945d8d0db785b4259a2f41e2998fac73 (diff)
VKontakte: no more write to db if oldValue == newValue
Diffstat (limited to 'protocols/VKontakte/src/vk_status.cpp')
-rw-r--r--protocols/VKontakte/src/vk_status.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/vk_status.cpp b/protocols/VKontakte/src/vk_status.cpp
index d7503923df..f8b8558ed1 100644
--- a/protocols/VKontakte/src/vk_status.cpp
+++ b/protocols/VKontakte/src/vk_status.cpp
@@ -144,7 +144,7 @@ void CVkProto::OnReceiveStatusMsg(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pR
return;
RetrieveStatusMsg(wszNewStatusMsg);
- setWString("OldStatusMsg", pwszOldStatusMsg);
+ DBSetWString(NULL, "OldStatusMsg", pwszOldStatusMsg);
}
void CVkProto::OnReceiveStatus(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq)
@@ -161,7 +161,7 @@ void CVkProto::OnReceiveStatus(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq)
if (!jnAudio) {
CMStringW wszStatusText(jnResponse["text"].as_mstring());
if (wszStatusText[0] != wchar_t(9835))
- setWString("OldStatusMsg", wszStatusText);
+ DBSetWString(NULL, "OldStatusMsg", wszStatusText);
}
}
@@ -245,7 +245,7 @@ INT_PTR __cdecl CVkProto::SvcSetListeningTo(WPARAM, LPARAM lParam)
wszListeningTo.Format(L"%s - %s",
pliInfo->ptszArtist ? pliInfo->ptszArtist : L"",
pliInfo->ptszTitle ? pliInfo->ptszTitle : L"");
- setWString("ListeningTo", wszListeningTo);
+ DBSetWString(NULL ,"ListeningTo", wszListeningTo);
}
RetrieveStatusMusic(wszListeningTo);
return 0;