summaryrefslogtreecommitdiff
path: root/protocols/MSN
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/MSN')
-rw-r--r--protocols/MSN/src/msn_auth.cpp6
-rw-r--r--protocols/MSN/src/msn_commands.cpp5
2 files changed, 10 insertions, 1 deletions
diff --git a/protocols/MSN/src/msn_auth.cpp b/protocols/MSN/src/msn_auth.cpp
index c2ca13612b..ae8bc6814b 100644
--- a/protocols/MSN/src/msn_auth.cpp
+++ b/protocols/MSN/src/msn_auth.cpp
@@ -238,6 +238,7 @@ int CMsnProto::MSN_GetPassportAuth(void)
}
else if (strcmp(addr, "storage.msn.com") == 0 && toks) {
replaceStr(authStorageToken, ezxml_txt(toks));
+ setString("authStorageToken", authStorageToken);
}
tokr = ezxml_next(tokr);
@@ -687,6 +688,10 @@ void CMsnProto::LoadAuthTokensDB(void)
hotAuthToken = strdup(dbv.pszVal);
db_free(&dbv);
}
+ if (getString("authStorageToken", &dbv) == 0) {
+ replaceStr(authStorageToken, dbv.pszVal);
+ db_free(&dbv);
+ }
}
void CMsnProto::SaveAuthTokensDB(void)
@@ -695,7 +700,6 @@ void CMsnProto::SaveAuthTokensDB(void)
setDword("authMethod", authMethod);
setString("authUser", authUser);
setString("authSSLToken", authSSLToken);
- setString("authContactToken", authContactToken);
setString("authUIC", authUIC);
setString("authCookies", authCookies);
setString("authStrToken", authStrToken);
diff --git a/protocols/MSN/src/msn_commands.cpp b/protocols/MSN/src/msn_commands.cpp
index 7060fcbf85..e04d768ccc 100644
--- a/protocols/MSN/src/msn_commands.cpp
+++ b/protocols/MSN/src/msn_commands.cpp
@@ -1850,6 +1850,11 @@ LBL_InvalidCommand:
mir_snprintf(szParam, sizeof(szParam), "%s %s", data.typeId, data.strMsgBytes);
MSN_ReceiveMessage(info, cmdString, szParam);
break;
+ } else if (!strcmp(data.typeId, "MSGR\\ABCH")) {
+ MimeHeaders tHeader;
+ msgBody = tHeader.readFromBuffer(msgBody);
+ MSN_ProcessNotificationMessage(msgBody, strlen(msgBody));
+ break;
}
if (!strcmp(data.typeId, "MSGR\\PUT") || !strcmp(data.typeId, "MSGR\\DEL")) {