diff options
Diffstat (limited to 'protocols/VKontakte/src/vk_chats.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_chats.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/protocols/VKontakte/src/vk_chats.cpp b/protocols/VKontakte/src/vk_chats.cpp index 79ee8ff0ed..e5b9b3bc6c 100644 --- a/protocols/VKontakte/src/vk_chats.cpp +++ b/protocols/VKontakte/src/vk_chats.cpp @@ -68,7 +68,7 @@ CVkChatInfo* CVkProto::AppendChat(int id, const JSONNode &jnDlg) Chat_GetInfo(&gci);
c->m_hContact = gci.hContact;
- setWString(gci.hContact, "Nick", wszTitle);
+ DBSetWString(gci.hContact, "Nick", wszTitle);
m_chats.insert(c);
for (int i = _countof(sttStatuses)-1; i >= 0; i--)
@@ -77,7 +77,7 @@ CVkChatInfo* CVkProto::AppendChat(int id, const JSONNode &jnDlg) setDword(gci.hContact, "vk_chat_id", id);
CMStringW wszHomepage(FORMAT, L"https://vk.com/im?sel=c%d", id);
- setWString(gci.hContact, "Homepage", wszHomepage);
+ DBSetWString(gci.hContact, "Homepage", wszHomepage);
db_unset(gci.hContact, m_szModuleName, "off");
@@ -233,9 +233,9 @@ void CVkProto::OnReceiveChatInfo(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pRe continue;
hContact = SetContactInfo(jnUser, true);
- db_set_b(hContact, "CList", "Hidden", 1);
- db_set_b(hContact, "CList", "NotOnList", 1);
- db_set_dw(hContact, "Ignore", "Mask1", 0);
+ DBSetByte(hContact, "CList", "Hidden", 1);
+ DBSetByte(hContact, "CList", "NotOnList", 1);
+ DBSetDWord(hContact, "Ignore", "Mask1", 0);
}
const JSONNode &jnMsgs = jnResponse["msgs"];
@@ -272,7 +272,7 @@ void CVkProto::SetChatTitle(CVkChatInfo *cc, LPCWSTR wszTopic) return;
cc->m_wszTopic = mir_wstrdup(wszTopic);
- setWString(cc->m_hContact, "Nick", wszTopic);
+ DBSetWString(cc->m_hContact, "Nick", wszTopic);
Chat_ChangeSessionName(m_szModuleName, cc->m_wszId, wszTopic);
}
@@ -794,7 +794,7 @@ void CVkProto::NickMenuHook(CVkChatInfo *cc, GCHOOK *gch) Chat_Event(&gce);
cu->m_wszNick = mir_wstrdup(wszNewNick);
- setWString(cc->m_hContact, CMStringA(FORMAT, "nick%d", cu->m_uid), wszNewNick);
+ DBSetWString(cc->m_hContact, CMStringA(FORMAT, "nick%d", cu->m_uid), wszNewNick);
}
break;
|