Mercurial > pidgin.yaz
changeset 27580:72cf7e73a869
Properly print pool, a list of PurpleBuddies, not strings.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sun, 12 Jul 2009 03:34:40 +0000 |
parents | c7812bda30f1 |
children | 1638786071af |
files | libpurple/protocols/jabber/roster.c |
diffstat | 1 files changed, 11 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/roster.c Sun Jul 12 02:59:46 2009 +0000 +++ b/libpurple/protocols/jabber/roster.c Sun Jul 12 03:34:40 2009 +0000 @@ -118,10 +118,18 @@ } if (pool) { - char *tmp = roster_groups_join(pool); + GString *tmp = g_string_new(NULL); + GSList *list = pool; + for ( ; list; list = list->next) { + tmp = g_string_append(tmp, + purple_group_get_name(purple_buddy_get_group(list->data))); + if (list->next) + tmp = g_string_append(tmp, ", "); + } + purple_debug_info("jabber", "jabber_roster_parse(): Removing %s from " - "groups: %s\n", jid, tmp); - g_free(tmp); + "groups: %s\n", jid, tmp->str); + g_string_free(tmp, TRUE); } if (groups) {