diff options
author | ElzorFox <elzorfox@ya.ru> | 2017-09-19 15:53:39 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2017-09-19 15:53:39 +0500 |
commit | 54ad7c456325b4c7fd639ef2d7cca7d5aef81c05 (patch) | |
tree | dec835ab05fd2fd71cd1a6925b1b97b7f46298d9 /protocols/VKontakte | |
parent | 73b122d495760172d7f380d783d17e1b36212282 (diff) |
VKontakte: ops
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r-- | protocols/VKontakte/src/vk_proto.cpp | 4 |
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 |