Mercurial > pidgin.yaz
changeset 20448:c1ff701bcb0c
Update a couple of instances of group_id handling to cope with the new
string group ids instead of numbers
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Tue, 29 May 2007 01:42:47 +0000 |
parents | 18ecdee88ed0 |
children | 4403cecc7cd6 |
files | libpurple/protocols/msn/sync.c libpurple/protocols/msn/userlist.c |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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;