From e9bd09e71e1d12803e0eec86a8e0a039c9d4e755 Mon Sep 17 00:00:00 2001 From: Piotr Piastucki Date: Sat, 16 May 2015 07:45:16 +0000 Subject: Set isConnectSuccess bool, maybe prevents possible crash on spurious XFR? Fixed status mode change and setting status text git-svn-id: http://svn.miranda-ng.org/main/trunk@13614 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MSN/src/msn_misc.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols/MSN/src/msn_misc.cpp') diff --git a/protocols/MSN/src/msn_misc.cpp b/protocols/MSN/src/msn_misc.cpp index eee9746688..1d57af93b3 100644 --- a/protocols/MSN/src/msn_misc.cpp +++ b/protocols/MSN/src/msn_misc.cpp @@ -603,6 +603,7 @@ void CMsnProto::MSN_SendStatusMessage(const char* msg) if (!msnLoggedIn) return; + MSN_SetServerStatus(m_iDesiredStatus); /* FIXME: Currently not implemented, shuold be set on status change anyway char* msgEnc = HtmlEncode(msg ? msg : ""); @@ -802,10 +803,9 @@ void CMsnProto::MSN_SetServerStatus(int newStatus) } char** msgptr = GetStatusMsgLoc(newStatus); - /* FIXME: This is what Skype client sends + /* FIXME: This is what Skype client sends */ myFlags = 0; myFlagsEx = cap_SupportsSDrive | cap_SupportsActivities; - */ int sz = mir_snprintf(szMsg, SIZEOF(szMsg), "" "%s110:0" @@ -830,7 +830,6 @@ void CMsnProto::MSN_SetServerStatus(int newStatus) "Publication: 1.0\r\n" "Uri: /user\r\n" "Content-Type: application/user+xml\r\n" - "Status-Priority: low\r\n" "Content-Length: %d\r\n\r\n%s", GetMyNetID(), MyOptions.szEmail, GetMyNetID(), MyOptions.szEmail, -- cgit v1.2.3