summaryrefslogtreecommitdiff
path: root/protocols/VKontakte
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2017-01-11 07:54:48 +0500
committerElzorFox <elzorfox@ya.ru>2017-01-11 07:54:48 +0500
commit64a226c992df61beef30c5e1b86bf34b478fe3e5 (patch)
tree62509777f16e7a4f17ac5e0b6c4c15c8598b01ec /protocols/VKontakte
parent7aed63a94c430094a66006ed459bfb8cbd7ff5f2 (diff)
VKontakte: db_get_sa(hContact, "Protocol", "p") does no good
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r--protocols/VKontakte/src/vk_messages.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_messages.cpp b/protocols/VKontakte/src/vk_messages.cpp
index d770180521..84b8075d3f 100644
--- a/protocols/VKontakte/src/vk_messages.cpp
+++ b/protocols/VKontakte/src/vk_messages.cpp
@@ -142,8 +142,8 @@ int CVkProto::OnDbEventRead(WPARAM, LPARAM hDbEvent)
MCONTACT hContact = db_event_getContact(hDbEvent);
if (!hContact)
return 0;
-
- CMStringA szProto(ptrA(db_get_sa(hContact, "Protocol", "p")));
+
+ CMStringA szProto(GetContactProto(hContact));
if (szProto.IsEmpty() || szProto != m_szModuleName)
return 0;