summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_trouter.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-12-20 16:52:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-12-20 16:52:04 +0300
commite8f02156813b7153d4970fd83f2e6adac3517923 (patch)
tree49632cf70e8dc0f6b464a0bbc6e06e0c88c2ca90 /protocols/SkypeWeb/src/skype_trouter.cpp
parentab6c868bccb088d493ab4016fd1918d822adfc2b (diff)
SkypeWeb: protocol reworked almost from scratch to support contact types other than 8 & 19
Diffstat (limited to 'protocols/SkypeWeb/src/skype_trouter.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_trouter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_trouter.cpp b/protocols/SkypeWeb/src/skype_trouter.cpp
index 9d9a9a9cb0..163c7776df 100644
--- a/protocols/SkypeWeb/src/skype_trouter.cpp
+++ b/protocols/SkypeWeb/src/skype_trouter.cpp
@@ -35,7 +35,7 @@ void CSkypeProto::OnReceiveStatus(NETLIBHTTPREQUEST *response, AsyncHttpRequest*
auto &root = reply.data();
for (auto &it : root["Responses"]) {
std::string id = it["Contact"].as_string();
- id.erase(0, 2);
+
MCONTACT hContact = AddContact(id.c_str());
if (hContact) {
int status = SkypeToMirandaStatus(it["Payload"]["status"].as_string().c_str());
@@ -59,7 +59,7 @@ void CSkypeProto::RefreshStatuses(void)
nRecs = 0;
}
- pReq << CHAR_PARAM("cMri", "8:" + id);
+ pReq << CHAR_PARAM("cMri", id);
nRecs++;
if (nRecs >= 10) {