diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-06-26 03:39:10 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-06-26 03:39:10 +0000 |
commit | 3a548ab7449b7c6f444eb7e626636914926380fa (patch) | |
tree | 60db91f3258bb353c1695d4d41e68b432c7a2898 /protocols/VKontakte/src/misc.cpp | |
parent | be489c4e6f4c1ab4b4d7f84e35a73e34e1b0b331 (diff) |
VKontakte: simplify code
git-svn-id: http://svn.miranda-ng.org/main/trunk@14390 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 9646b486d2..f68d076c5e 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -233,7 +233,7 @@ void CVkProto::SetAllContactStatuses(int iStatus) for (MCONTACT hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName)) {
if (isChatRoom(hContact))
SetChatStatus(hContact, iStatus);
- else if (getWord(hContact, "Status", 0) != iStatus)
+ else if (getWord(hContact, "Status") != iStatus)
setWord(hContact, "Status", iStatus);
if (iStatus == ID_STATUS_OFFLINE) {
@@ -262,7 +262,7 @@ MCONTACT CVkProto::FindUser(LONG dwUserid, bool bCreate) if (!bCreate)
return NULL;
- MCONTACT hNewContact = (MCONTACT)CallService(MS_DB_CONTACT_ADD, 0, 0);
+ MCONTACT hNewContact = (MCONTACT)CallService(MS_DB_CONTACT_ADD);
Proto_AddToContact(hNewContact, m_szModuleName);
setDword(hNewContact, "ID", dwUserid);
db_set_ts(hNewContact, "CList", "Group", m_defaultGroup);
@@ -708,7 +708,7 @@ void CVkProto::ContactTypingThread(void *p) MCONTACT hContact = (MCONTACT)p;
CallService(MS_PROTO_CONTACTISTYPING, hContact, 5);
Sleep(5500);
- CallService(MS_PROTO_CONTACTISTYPING, hContact, 0);
+ CallService(MS_PROTO_CONTACTISTYPING, hContact);
if (!ServiceExists("MessageState/DummyService")) {
Sleep(1500);
@@ -729,7 +729,7 @@ int CVkProto::OnProcessSrmmEvent(WPARAM, LPARAM lParam) void CVkProto::SetSrmmReadStatus(MCONTACT hContact)
{
- time_t time = getDword(hContact, "LastMsgReadTime", 0);
+ time_t time = getDword(hContact, "LastMsgReadTime");
if (!time)
return;
|