changeset 17187:0c7d4f561b04

A couple of tweaks to open Hotmail inbox
author Stu Tomlinson <stu@nosnilmot.com>
date Sun, 20 May 2007 12:56:40 +0000
parents b27e535cce50
children 36f97c87e980
files libpurple/protocols/msn/msn.c libpurple/protocols/msn/notification.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/msn.c	Sun May 20 08:41:53 2007 +0000
+++ b/libpurple/protocols/msn/msn.c	Sun May 20 12:56:40 2007 +0000
@@ -342,8 +342,10 @@
 
 	if (session->passport_info.file == NULL)
 	{
+		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;
 	}
 
--- a/libpurple/protocols/msn/notification.c	Sun May 20 08:41:53 2007 +0000
+++ b/libpurple/protocols/msn/notification.c	Sun May 20 12:56:40 2007 +0000
@@ -592,6 +592,10 @@
 qng_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd)
 {
 	static int count = 0;
+	MsnSession *session = cmdproc->session;
+
+	if (session->passport_info.file == NULL)
+		return;
 
 	if (count++ < 26)
 		return;