summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2017-09-19 15:53:39 +0500
committerElzorFox <elzorfox@ya.ru>2017-09-19 15:53:39 +0500
commit54ad7c456325b4c7fd639ef2d7cca7d5aef81c05 (patch)
treedec835ab05fd2fd71cd1a6925b1b97b7f46298d9 /protocols
parent73b122d495760172d7f380d783d17e1b36212282 (diff)
VKontakte: ops
Diffstat (limited to 'protocols')
-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