summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-08-12 20:31:07 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-08-12 20:31:07 +0300
commitdd0025211d2682bf8e89ead0f93ecb190ce38c7b (patch)
treefe9f91073a07a9c7058e4594e9bbd9092007ed33 /protocols/SkypeWeb/src/skype_proto.cpp
parentb2aad2f0fc95cd3a85319429b9f92c14e3d8d849 (diff)
fixes #2520 (SkypeWeb: миранда теперь представляется браузером)
Diffstat (limited to 'protocols/SkypeWeb/src/skype_proto.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_proto.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp
index 4536dc4b8f..eddaa3d9a3 100644
--- a/protocols/SkypeWeb/src/skype_proto.cpp
+++ b/protocols/SkypeWeb/src/skype_proto.cpp
@@ -28,7 +28,12 @@ CSkypeProto::CSkypeProto(const char* protoName, const wchar_t* userName) :
m_impl(*this),
m_requests(1)
{
- InitNetwork();
+ NETLIBUSER nlu = {};
+ CMStringW name(FORMAT, TranslateT("%s connection"), m_tszUserName);
+ nlu.flags = NUF_OUTGOING | NUF_INCOMING | NUF_HTTPCONNS | NUF_UNICODE;
+ nlu.szDescriptiveName.w = name.GetBuffer();
+ nlu.szSettingsModule = m_szModuleName;
+ m_hNetlibUser = Netlib_RegisterUser(&nlu);
CreateProtoService(PS_CREATEACCMGRUI, &CSkypeProto::OnAccountManagerInit);
CreateProtoService(PS_GETAVATARINFO, &CSkypeProto::SvcGetAvatarInfo);