diff libpurple/protocols/msn/sync.c @ 17422:59e09ff3490d

Handle new accounts with no buddies better - finish login when the first group is received, this allows us to handle the GTC, BLP & PRP commands for new accounts.
author Stu Tomlinson <stu@nosnilmot.com>
date Sun, 27 May 2007 12:39:24 +0000
parents 32c366eeeb99
children 42444b7071d3
line wrap: on
line diff
--- a/libpurple/protocols/msn/sync.c	Sun May 27 01:41:02 2007 +0000
+++ b/libpurple/protocols/msn/sync.c	Sun May 27 12:39:24 2007 +0000
@@ -99,8 +99,19 @@
 
 	/* HACK */
 	if (group_id == 0)
+	{
 		/* Group of ungroupped buddies */
+		if (session->sync->total_users == 0)
+		{
+			cmdproc->cbs_table = session->sync->old_cbs_table;
+
+			msn_session_finish_login(session);
+
+			msn_sync_destroy(session->sync);
+			session->sync = NULL;
+		}
 		return;
+	}
 
 	if ((purple_find_group(name)) == NULL)
 	{