summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_login.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-05-28 15:14:10 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-05-28 15:14:10 +0300
commit373e78401f7ab116bc0c1787da125d5e46c901d5 (patch)
tree06b4ac8092c42ea5f3d039fe641fe43a895fb5c7 /protocols/SkypeWeb/src/skype_login.cpp
parent3f8d2fd0b0022c11e30ab47046013b0c58030d47 (diff)
SkypeWeb: further shit cleaning
Diffstat (limited to 'protocols/SkypeWeb/src/skype_login.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_login.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/protocols/SkypeWeb/src/skype_login.cpp b/protocols/SkypeWeb/src/skype_login.cpp
index 9918acc54a..316607151c 100644
--- a/protocols/SkypeWeb/src/skype_login.cpp
+++ b/protocols/SkypeWeb/src/skype_login.cpp
@@ -184,11 +184,11 @@ void CSkypeProto::OnEndpointCreated(NETLIBHTTPREQUEST *response, AsyncHttpReques
}
if (auto *hdr = Netlib_GetHeader(response, "Location"))
- m_szServer = GetServerFromUrl(hdr).Detach();
+ g_plugin.szDefaultServer = GetServerFromUrl(hdr);
RefreshStatuses();
- SendRequest(new CreateSubscriptionsRequest(this));
+ SendRequest(new CreateSubscriptionsRequest());
}
void CSkypeProto::OnSubscriptionsCreated(NETLIBHTTPREQUEST *response, AsyncHttpRequest*)
@@ -236,26 +236,25 @@ void CSkypeProto::OnCapabilitiesSended(NETLIBHTTPREQUEST *response, AsyncHttpReq
return;
}
- SendRequest(new SetStatusRequest(MirandaToSkypeStatus(m_iDesiredStatus), this));
+ SendRequest(new SetStatusRequest(MirandaToSkypeStatus(m_iDesiredStatus)));
LIST<char> skypenames(1);
for (auto &hContact : AccContacts())
if (!isChatRoom(hContact))
skypenames.insert(getStringA(hContact, SKYPE_SETTINGS_ID));
- SendRequest(new CreateContactsSubscriptionRequest(skypenames, this));
+ SendRequest(new CreateContactsSubscriptionRequest(skypenames));
FreeList(skypenames);
skypenames.destroy();
m_hPollingEvent.Set();
- SendRequest(new LoadChatsRequest(this));
- SendRequest(new CreateTrouterRequest());
+ SendRequest(new LoadChatsRequest());
PushRequest(new GetContactListRequest(this, nullptr));
PushRequest(new GetAvatarRequest(ptrA(getStringA("AvatarUrl")), 0));
if (m_opts.bAutoHistorySync)
- PushRequest(new SyncHistoryFirstRequest(100, this));
+ PushRequest(new SyncHistoryFirstRequest(100));
JSONNode root = JSONNode::parse(response->pData);
if (root)