cpw.darkrain42.roster: 14e9968d: Properly print pool, a list of PurpleBud...
darkrain42 at pidgin.im
darkrain42 at pidgin.im
Sun Jul 12 01:55:44 EDT 2009
-----------------------------------------------------------------
Revision: 14e9968d26dbac46295dfaaf180c849241aed847
Ancestor: d6ef53b44b08bcca620e5b3c47cdc00c46814d2e
Author: darkrain42 at pidgin.im
Date: 2009-07-12T03:34:40
Branch: im.pidgin.cpw.darkrain42.roster
URL: http://d.pidgin.im/viewmtn/revision/info/14e9968d26dbac46295dfaaf180c849241aed847
Modified files:
libpurple/protocols/jabber/roster.c
ChangeLog:
Properly print pool, a list of PurpleBuddies, not strings.
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/roster.c ab0c15f7665180d07c6a9bbac5abc28db3b0f5f8
+++ libpurple/protocols/jabber/roster.c e45883f7205b2f439f2c1856b97256fb6a8a6d0f
@@ -118,10 +118,18 @@ static void add_purple_buddy_to_groups(J
}
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) {
More information about the Commits
mailing list