From 6d02ec568c0203783e59ebf92f4b736a96a46d65 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Mon, 27 Apr 2015 19:01:33 +0000 Subject: SkypeWeb: Small fixes. git-svn-id: http://svn.miranda-ng.org/main/trunk@13202 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/requests/contacts.h | 5 ++--- protocols/SkypeWeb/src/skype_menus.cpp | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'protocols') diff --git a/protocols/SkypeWeb/src/requests/contacts.h b/protocols/SkypeWeb/src/requests/contacts.h index 796df60308..83e51fefc0 100644 --- a/protocols/SkypeWeb/src/requests/contacts.h +++ b/protocols/SkypeWeb/src/requests/contacts.h @@ -81,9 +81,8 @@ public: << CHAR_VALUE("X-Skypetoken", token) << CHAR_VALUE("Accept", "application/json") << CHAR_VALUE("Content-type", "application/x-www-form-urlencoded"); - CMStringA data; - data.AppendFormat("greeting=%s", ptrA(mir_urlEncode(greeting))); - Body << VALUE(data); + + Body << CHAR_VALUE("greeting", ptrA(mir_urlEncode(greeting))); } }; diff --git a/protocols/SkypeWeb/src/skype_menus.cpp b/protocols/SkypeWeb/src/skype_menus.cpp index e0adcf681c..ab4a4f34f2 100644 --- a/protocols/SkypeWeb/src/skype_menus.cpp +++ b/protocols/SkypeWeb/src/skype_menus.cpp @@ -88,15 +88,15 @@ void CSkypeProto::InitMenus() mi.pszService = MODULE"/BlockContact"; mi.ptszName = LPGENT("Block contact"); - mi.position = CMI_POSITION + CMI_GETSERVERHISTORY; + mi.position = CMI_POSITION + CMI_BLOCK; mi.icolibItem = LoadSkinnedIcon(SKINICON_OTHER_DELETE); ContactMenuItems[CMI_BLOCK] = Menu_AddContactMenuItem(&mi); CreateServiceFunction(mi.pszService, GlobalService<&CSkypeProto::BlockContact>); mi.pszService = MODULE"/UnblockContact"; mi.ptszName = LPGENT("Unblock contact"); - mi.position = CMI_POSITION + CMI_GETSERVERHISTORY; - mi.icolibItem = LoadSkinnedIcon(SKINICON_OTHER_DELETE); + mi.position = CMI_POSITION + CMI_UNBLOCK; + mi.icolibItem = LoadSkinnedIcon(SKINICON_OTHER_ADDCONTACT); ContactMenuItems[CMI_UNBLOCK] = Menu_AddContactMenuItem(&mi); CreateServiceFunction(mi.pszService, GlobalService<&CSkypeProto::UnblockContact>); } -- cgit v1.2.3