From c12830cc2e7a2ee578fb75bf8f195446d7a1e58f Mon Sep 17 00:00:00 2001 From: Piotr Piastucki Date: Mon, 18 May 2015 18:53:46 +0000 Subject: Send correct capabilities on PUT presence git-svn-id: http://svn.miranda-ng.org/main/trunk@13682 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MSN/src/msn_global.h | 3 +++ protocols/MSN/src/msn_misc.cpp | 10 ++++------ 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'protocols/MSN') diff --git a/protocols/MSN/src/msn_global.h b/protocols/MSN/src/msn_global.h index 88e600038e..481080e507 100644 --- a/protocols/MSN/src/msn_global.h +++ b/protocols/MSN/src/msn_global.h @@ -741,6 +741,9 @@ struct MsnContact #define capex_SupportsP4Activity 0x40000000 #define capex_SupportsChats 0x80000000 +#define capexex_SupportsMissedConversations 0x00000001 +#define capexex_SupportsShortCircuit 0x00000020 + #define NETID_UNKNOWN 0 #define NETID_MSN 1 #define NETID_LCS 2 diff --git a/protocols/MSN/src/msn_misc.cpp b/protocols/MSN/src/msn_misc.cpp index 80607de098..ac44a8998b 100644 --- a/protocols/MSN/src/msn_misc.cpp +++ b/protocols/MSN/src/msn_misc.cpp @@ -771,7 +771,8 @@ void CMsnProto::MSN_SetServerStatus(int newStatus) if (getByte("MobileEnabled", 0) && getByte("MobileAllowed", 0)) myFlags |= cap_MobileEnabled; - unsigned myFlagsEx = capex_SupportsPeerToPeerV2; + unsigned myFlagsEx = capex_SupportsPeerToPeerV2 | capex_SupportsOfflineIM; + unsigned myFlagsExEx = capexex_SupportsMissedConversations | capexex_SupportsShortCircuit; char szMsg[2048]; /* @@ -803,21 +804,18 @@ void CMsnProto::MSN_SetServerStatus(int newStatus) } char** msgptr = GetStatusMsgLoc(newStatus); - /* FIXME: This is what Skype client sends */ - myFlags = 0; - myFlagsEx = cap_SupportsSDrive | cap_SupportsActivities; int sz = mir_snprintf(szMsg, SIZEOF(szMsg), "" "%s110:0" "%s" - "%u:%u" + "%u:%u:%u" "%s11" "%s%s" "24true" "", MyOptions.szMachineGuid, msnProductVer, szStatusName, - MyOptions.szMachineGuid, myFlags, myFlagsEx, + MyOptions.szMachineGuid, myFlags, myFlagsEx, myFlagsExEx, MyOptions.szMachineGuid, szPlace, msgptr?ptrA(HtmlEncode(*msgptr)):"", GetMyUsername(NETID_SKYPE), MyOptions.szMachineGuid, -- cgit v1.2.3