From aeca3a21c3c128e88d9c43b902ce437351f4dbc1 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sun, 3 May 2015 09:18:25 +0000 Subject: SkypeWeb: Computer name in UserPresence. git-svn-id: http://svn.miranda-ng.org/main/trunk@13389 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/requests/capabilities.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'protocols/SkypeWeb/src/requests') diff --git a/protocols/SkypeWeb/src/requests/capabilities.h b/protocols/SkypeWeb/src/requests/capabilities.h index 1fe909a962..8bb8cebdf1 100644 --- a/protocols/SkypeWeb/src/requests/capabilities.h +++ b/protocols/SkypeWeb/src/requests/capabilities.h @@ -31,10 +31,14 @@ public: CMStringA data; int bitness = 32; + char compName[MAX_COMPUTERNAME_LENGTH + 1]; + DWORD size = SIZEOF(compName); + GetComputerNameA(compName, &size); + #ifdef _WIN64 bitness = 64; #endif - data.AppendFormat("{\"id\":\"messagingService\",\"type\":\"EndpointPresenceDoc\",\"selfLink\":\"uri\",\"privateInfo\":{\"epname\":\"Miranda\"},\"publicInfo\":{\"capabilities\":\"Audio|Video\",\"typ\":125,\"skypeNameVersion\":\"Miranda NG Skype\",\"nodeInfo\":\"xx\",\"version\":\"%s x%d\"}}", g_szMirVer, bitness); + data.AppendFormat("{\"id\":\"messagingService\",\"type\":\"EndpointPresenceDoc\",\"selfLink\":\"uri\",\"privateInfo\":{\"epname\":\"%s\"},\"publicInfo\":{\"capabilities\":\"Audio|Video\",\"typ\":125,\"skypeNameVersion\":\"Miranda NG Skype\",\"nodeInfo\":\"xx\",\"version\":\"%s x%d\"}}", compName, g_szMirVer, bitness); Body << VALUE(data); -- cgit v1.2.3