summaryrefslogtreecommitdiff
path: root/protocols/VKontakte
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r--protocols/VKontakte/src/vk_proto.cpp4
1 files changed, 2 insertions, 2 deletions
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