diff libpurple/protocols/msn/session.c @ 20439:bee467c81570

A bunch of MSNP14 stuff: Don't store the group id on the group blist node. Fix & tidy up payload length detection for commands (errors can have payloads too) Avoid a crash when connecting to a new account with no contact list Tidy up addressbook parsing slightly Fix crashes when buddy list sync issues are detected Fix initial email notifications, Fixes #1293 Plug a few memory leaks Detect OIM authentication failures correctly NOTE: I have disabled dynamic address book retrieval, instead we now receive the whole address book. This is because the blist sync stuff is still very wonky.
author Stu Tomlinson <stu@nosnilmot.com>
date Sun, 27 May 2007 17:00:06 +0000
parents 998f9b5c8c8d
children 4403cecc7cd6
line wrap: on
line diff
--- a/libpurple/protocols/msn/session.c	Sun May 27 11:23:09 2007 +0000
+++ b/libpurple/protocols/msn/session.c	Sun May 27 17:00:06 2007 +0000
@@ -273,9 +273,10 @@
 	 */
 	for (gnode = purple_get_blist()->root; gnode; gnode = gnode->next) {
 		PurpleGroup *group = (PurpleGroup *)gnode;
-		const char *group_name = group->name;
+		const char *group_name;
 		if(!PURPLE_BLIST_NODE_IS_GROUP(gnode))
 			continue;
+		group_name = group->name;
 		if(!g_strcasecmp(group_name, MSN_INDIVIDUALS_GROUP_NAME)
 						||	!g_strcasecmp(group_name,MSN_NON_IM_GROUP_NAME)){
 			continue;
@@ -322,7 +323,7 @@
 					{
 						/* The user was not on the server list or not in that group
 						 * on the server list */
-						msn_show_sync_issue(session, b->name, group_name);
+						msn_show_sync_issue(session, purple_buddy_get_name(b), group_name);
 					}
 				}
 			}