Update a couple of instances of group_id handling to cope with the new cpw.khc.msnp14

Tue, 29 May 2007 01:42:47 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Tue, 29 May 2007 01:42:47 +0000
branch
cpw.khc.msnp14
changeset 20531
49f6663daa4a
parent 20530
0178f0d66bf0
child 20532
272c14d773d3

Update a couple of instances of group_id handling to cope with the new
string group ids instead of numbers

libpurple/protocols/msn/sync.c file | annotate | diff | comparison | revisions
libpurple/protocols/msn/userlist.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/msn/sync.c	Mon May 28 16:12:25 2007 +0000
+++ b/libpurple/protocols/msn/sync.c	Tue May 29 01:42:47 2007 +0000
@@ -145,10 +145,10 @@
 
 		for (c = tokens; *c != NULL; c++)
 		{
-			int id;
+			char *id;
 
-			id = atoi(*c);
-			group_ids = g_slist_append(group_ids, GINT_TO_POINTER(id));
+			id = *c;
+			group_ids = g_slist_append(group_ids, g_strdup(id));
 		}
 
 		g_strfreev(tokens);
--- a/libpurple/protocols/msn/userlist.c	Mon May 28 16:12:25 2007 +0000
+++ b/libpurple/protocols/msn/userlist.c	Tue May 29 01:42:47 2007 +0000
@@ -95,7 +95,7 @@
 	if (group_id == NULL)
 		return FALSE;
 
-	if (g_list_find(user->group_ids, group_id))
+	if (g_list_find_custom(user->group_ids, group_id, (GCompareFunc)strcmp))
 		return TRUE;
 
 	return FALSE;

mercurial