changeset 17163:e4179a27f5be

merge of '1b31a3a29b0aa69839b75bcf2fbc27ff3f36f3ed' and '70ef97577e36bac904647f87d4dbf571f6163a3f'
author Stu Tomlinson <stu@nosnilmot.com>
date Sun, 20 May 2007 15:09:02 +0000
parents d92776c252b8 (diff) 251ed95cc52c (current diff)
children c2ecc135867d
files
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/msn.c	Sun May 20 15:02:03 2007 +0000
+++ b/libpurple/protocols/msn/msn.c	Sun May 20 15:09:02 2007 +0000
@@ -345,7 +345,6 @@
 		MsnCmdProc *cmdproc = session->notification->cmdproc;
 		purple_notify_error(gc, NULL,
 						  _("This Hotmail account may not be active."), NULL);
-		msn_cmdproc_send(cmdproc, "URL", "%s", "INBOX");
 		return;
 	}
 
@@ -621,7 +620,8 @@
 	account = purple_connection_get_account(gc);
 	user = msn_normalize(account, purple_account_get_username(account));
 
-	if (strstr(user, "@hotmail.") != NULL)
+	if ((strstr(user, "@hotmail.") != NULL) ||
+		(strstr(user, "@msn.com") != NULL))
 	{
 		m = g_list_append(m, NULL);
 		act = purple_plugin_action_new(_("Open Hotmail Inbox"),
--- a/libpurple/protocols/msn/session.c	Sun May 20 15:02:03 2007 +0000
+++ b/libpurple/protocols/msn/session.c	Sun May 20 15:09:02 2007 +0000
@@ -404,4 +404,9 @@
 
 	/* Sync users */
 	msn_session_sync_users(session);
+	/* It seems that some accounts that haven't accessed hotmail for a while
+	 * and @msn.com accounts don't automatically get the initial email
+	 * notification so we always request it on login
+	 */
+	msn_cmdproc_send(session->notification->cmdproc, "URL", "%s", "INBOX");
 }