From 625d0a8916327ffe942fc8683291c6355e814963 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Thu, 4 Jun 2015 16:21:08 +0000 Subject: SkypeWeb: Setting for place. git-svn-id: http://svn.miranda-ng.org/main/trunk@14000 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_login.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'protocols/SkypeWeb/src/skype_login.cpp') diff --git a/protocols/SkypeWeb/src/skype_login.cpp b/protocols/SkypeWeb/src/skype_login.cpp index 056f3df9bc..28131e1062 100644 --- a/protocols/SkypeWeb/src/skype_login.cpp +++ b/protocols/SkypeWeb/src/skype_login.cpp @@ -141,8 +141,21 @@ void CSkypeProto::OnSubscriptionsCreated(const NETLIBHTTPREQUEST *response) SetStatus(ID_STATUS_OFFLINE); return; } + char *cName; + ptrT place(getTStringA("Place")); - PushRequest(new SendCapabilitiesRequest(RegToken, EndpointId, Server), &CSkypeProto::OnCapabilitiesSended); + if (place && *place) + cName = mir_utf8encodeT(place); + else + { + char compName[MAX_COMPUTERNAME_LENGTH + 1]; + DWORD size = SIZEOF(compName); + GetComputerNameA(compName, &size); + cName = compName; + } + PushRequest(new SendCapabilitiesRequest(RegToken, EndpointId, cName, Server), &CSkypeProto::OnCapabilitiesSended); + + mir_free(cName); } void CSkypeProto::OnCapabilitiesSended(const NETLIBHTTPREQUEST *response) -- cgit v1.2.3