diff libpurple/protocols/msn/notification.c @ 23611:b2609fca4943

Use "EmailEnabled" from the MSN profile message to determine whether the email inbox can be opened. References #5762.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Mon, 28 Jul 2008 05:10:48 +0000
parents d370388bfc89
children 7f4b697c6947
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c	Mon Jul 28 01:51:11 2008 +0000
+++ b/libpurple/protocols/msn/notification.c	Mon Jul 28 05:10:48 2008 +0000
@@ -1666,6 +1666,9 @@
 	if ((value = msn_message_get_attr(msg, "LoginTime")) != NULL)
 		session->passport_info.sl = atol(value);
 
+	if ((value = msn_message_get_attr(msg, "EmailEnabled")) != NULL)
+		session->passport_info.email_enabled = (gboolean)atol(value);
+
 	/*starting retrieve the contact list*/
 	clLastChange = purple_account_get_string(session->account, "CLLastChange", NULL);
 #ifdef MSN_PARTIAL_LISTS