From 54ad7c456325b4c7fd639ef2d7cca7d5aef81c05 Mon Sep 17 00:00:00 2001 From: ElzorFox Date: Tue, 19 Sep 2017 15:53:39 +0500 Subject: VKontakte: ops --- protocols/VKontakte/src/vk_proto.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/VKontakte') diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp index 60131a3586..0edae1c719 100644 --- a/protocols/VKontakte/src/vk_proto.cpp +++ b/protocols/VKontakte/src/vk_proto.cpp @@ -701,7 +701,7 @@ int CVkProto::OnContactDeleted(WPARAM hContact, LPARAM) dlg.DoModal(); debugLogW(L"CVkProto::OnContactDeleted %s DeleteDialog=%d DeleteFromFriendlist=%d", pwszNick, param->bDeleteDialog, param->bDeleteFromFriendlist); - if (param->bDeleteDialog || param->bDeleteFromFriendlist) + if (!(param->bDeleteDialog || param->bDeleteFromFriendlist)) return 0; CMStringA code(FORMAT, "var userID=\"%d\";", userID); @@ -714,7 +714,7 @@ int CVkProto::OnContactDeleted(WPARAM hContact, LPARAM) code += "return 1;"; Push(new AsyncHttpRequest(this, REQUEST_GET, "/method/execute.json", true, &CVkProto::OnReceiveSmth) - << CHAR_PARAM("code", code)); + << CHAR_PARAM("code", code.c_str())); return 0; } \ No newline at end of file -- cgit v1.2.3