summaryrefslogtreecommitdiff
path: root/protocols/MSN/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/MSN/src')
-rw-r--r--protocols/MSN/src/msn_commands.cpp1
-rw-r--r--protocols/MSN/src/msn_misc.cpp5
-rw-r--r--protocols/MSN/src/msn_threads.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/protocols/MSN/src/msn_commands.cpp b/protocols/MSN/src/msn_commands.cpp
index 116d82c233..9a9e2e7958 100644
--- a/protocols/MSN/src/msn_commands.cpp
+++ b/protocols/MSN/src/msn_commands.cpp
@@ -1194,6 +1194,7 @@ LBL_InvalidCommand:
else
{
msnLoggedIn = true;
+ isConnectSuccess = true;
MSN_SetServerStatus(m_iStatus);
MSN_EnableMenuItems(true);
MSN_RefreshContactList();
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),
"<user>"
"<sep n=\"PE\" epid=\"%s\"><VER>%s</VER><TYP>11</TYP><Capabilities>0:0</Capabilities></sep>"
@@ -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,
diff --git a/protocols/MSN/src/msn_threads.cpp b/protocols/MSN/src/msn_threads.cpp
index 382c113891..0eee4578c4 100644
--- a/protocols/MSN/src/msn_threads.cpp
+++ b/protocols/MSN/src/msn_threads.cpp
@@ -706,7 +706,7 @@ BYTE* HReadBuffer::surelyRead(size_t parBytes)
}
}
- while ((startOffset + parBytes) > totalDataSize) {
+ while ((startOffset + parBytes) > totalDataSize) {
int recvResult = owner->recv((char*)buffer + totalDataSize, owner->mDataSize - totalDataSize);
if (recvResult <= 0)