changeset 7289:ab2085024a29

[gaim-migrate @ 7870] Let new MSN users with empty buddy lists sign on. This fixes a lot of bug numbers. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 17 Oct 2003 15:03:27 +0000
parents ff9127038a5a
children 2267f71cb47b
files src/protocols/msn/notification.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/notification.c	Fri Oct 17 14:57:59 2003 +0000
+++ b/src/protocols/msn/notification.c	Fri Oct 17 15:03:27 2003 +0000
@@ -1714,11 +1714,21 @@
 		size_t param_count)
 {
 	MsnSession *session = servconn->session;
+	GaimConnection *gc = gaim_account_get_connection(session->account);
 
 	if (session->protocol_ver >= 8)
 	{
 		session->total_users  = atoi(params[2]);
 		session->total_groups = atoi(params[3]);
+
+		if (session->total_users == 0)
+		{
+			gaim_connection_set_state(gc, GAIM_CONNECTED);
+			serv_finish_login(gc);
+
+			session->syncing_lists = FALSE;
+			session->lists_synced  = TRUE;
+		}
 	}
 
 	return TRUE;