diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-18 07:05:03 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-18 07:05:03 +0000 |
commit | 52741a247b2f01c0495f2527e0939755d3348fc3 (patch) | |
tree | 7061b63893f33f59f9775acc694b543606546cdf /protocols/SkypeWeb/src/skype_proto.cpp | |
parent | 67c3941db8a7ea1965dbed909f33380200f04090 (diff) |
SkypeWeb: Optimizations.
git-svn-id: http://svn.miranda-ng.org/main/trunk@12899 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_proto.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_proto.cpp | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp index 48f3713c28..4cee50e5f6 100644 --- a/protocols/SkypeWeb/src/skype_proto.cpp +++ b/protocols/SkypeWeb/src/skype_proto.cpp @@ -210,10 +210,8 @@ int CSkypeProto::SetStatus(int iNewStatus) else
{
// set status
- ptrA regToken(getStringA("registrationToken"));
- ptrA endpoint(getStringA("endpointId"));
- PushRequest(new SetStatusRequest(regToken, MirandaToSkypeStatus(m_iDesiredStatus)), &CSkypeProto::OnStatusChanged);
- PushRequest(new SendCapabilitiesRequest(regToken, endpoint));
+ SendRequest(new SetStatusRequest(RegToken, MirandaToSkypeStatus(m_iDesiredStatus)), &CSkypeProto::OnStatusChanged);
+ PushRequest(new SendCapabilitiesRequest(RegToken, EndpointId));
}
}
@@ -223,16 +221,7 @@ int CSkypeProto::SetStatus(int iNewStatus) int CSkypeProto::UserIsTyping(MCONTACT hContact, int type)
{
- PushRequest
- (
- new SendTypingRequest
- (
- ptrA(getStringA("registrationToken")),
- ptrA(getStringA(hContact, SKYPE_SETTINGS_ID)),
- type,
- ptrA(getStringA("Server"))
- )
- );
+ SendRequest(new SendTypingRequest(RegToken, ptrA(getStringA(hContact, SKYPE_SETTINGS_ID)), type, Server));
return 0;
}
|