Tue, 29 May 2007 01:42:47 +0000
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;