summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2015-04-28 03:08:14 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2015-04-28 03:08:14 +0000
commit96486c391cc929c18133ebf26afdece29d6988e6 (patch)
tree190cbc0c886581a85f0910da17be19c77e9e63a3
parent19eac0d00af3e4c2fd4e5d375bd54472f0e08dcd (diff)
VKontakte:
NotOnList for chat privates users Ignore for chat userinfo users version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@13215 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/VKontakte/src/version.h2
-rw-r--r--protocols/VKontakte/src/vk_chats.cpp7
2 files changed, 5 insertions, 4 deletions
diff --git a/protocols/VKontakte/src/version.h b/protocols/VKontakte/src/version.h
index 374f8ca7e8..52445c2ef4 100644
--- a/protocols/VKontakte/src/version.h
+++ b/protocols/VKontakte/src/version.h
@@ -1,7 +1,7 @@
#define __MAJOR_VERSION 0
#define __MINOR_VERSION 1
#define __RELEASE_NUM 1
-#define __BUILD_NUM 0
+#define __BUILD_NUM 1
#include <stdver.h>
diff --git a/protocols/VKontakte/src/vk_chats.cpp b/protocols/VKontakte/src/vk_chats.cpp
index 5258520e49..ea75491a07 100644
--- a/protocols/VKontakte/src/vk_chats.cpp
+++ b/protocols/VKontakte/src/vk_chats.cpp
@@ -385,12 +385,12 @@ int CVkProto::OnChatEvent(WPARAM, LPARAM lParam)
case GC_USER_PRIVMESS:
{
MCONTACT hContact = FindUser(_ttoi(gch->ptszUID));
- if (hContact == NULL)
- {
+ if (hContact == NULL) {
hContact = FindUser(_ttoi(gch->ptszUID), true);
db_set_b(hContact, "CList", "Hidden", 1);
- RetrieveUserInfo(_ttoi(gch->ptszUID));
+ db_set_b(hContact, "CList", "NotOnList", 1);
db_set_dw(hContact, "Ignore", "Mask1", 0);
+ RetrieveUserInfo(_ttoi(gch->ptszUID));
}
CallService(MS_MSG_SENDMESSAGET, hContact, 0);
}
@@ -679,6 +679,7 @@ void CVkProto::NickMenuHook(CVkChatInfo *cc, GCHOOK *gch)
hContact = FindUser(cu->m_uid, true);
db_set_b(hContact, "CList", "Hidden", 1);
db_set_b(hContact, "CList", "NotOnList", 1);
+ db_set_dw(hContact, "Ignore", "Mask1", 0);
}
CallService(MS_USERINFO_SHOWDIALOG, hContact, 0);
break;