summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_login.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb/src/skype_login.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_login.cpp15
1 files changed, 14 insertions, 1 deletions
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)