changeset 27010:a500f65bd077

Pluck Adium's roster debugging from 86720de21a854aa
author Paul Aurich <paul@darkrain42.org>
date Wed, 03 Jun 2009 15:33:55 +0000
parents e5d7c957ed53
children f2ca52166a0d
files libpurple/protocols/jabber/roster.c
diffstat 1 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/roster.c	Wed Jun 03 14:45:33 2009 +0000
+++ b/libpurple/protocols/jabber/roster.c	Wed Jun 03 15:33:55 2009 +0000
@@ -283,6 +283,11 @@
 
 	if(grps) {
 		groups = grps;
+		for (l = groups; l; l = l->next) {
+			purple_debug_info("jabber", "jabber_roster_update(%s): [Source: grps]: groups contains %s",
+							  name, (const char *)l->data);
+		}
+
 	} else {
 		GSList *buddies = purple_find_buddies(js->gc->account, name);
 		if(!buddies)
@@ -293,6 +298,10 @@
 			groups = g_slist_append(groups, (char *)purple_group_get_name(g));
 			buddies = g_slist_remove(buddies, b);
 		}
+		for (l = groups; l; l = l->next) {
+			purple_debug_info("jabber", "jabber_roster_update(%s): [Source: local blist]: groups contains %s",
+							  name, (const char *)l->data);
+		}
 	}
 
 	iq = jabber_iq_new_query(js, JABBER_IQ_SET, "jabber:iq:roster");
@@ -369,6 +378,9 @@
 	if(b != NULL) {
 		purple_blist_alias_buddy(b, alias);
 
+		purple_debug_info("jabber", "jabber_roster_alias_change(): Aliased %s to %s",
+				name, alias);
+
 		jabber_roster_update(gc->proto_data, name, NULL);
 	}
 }
@@ -395,6 +407,10 @@
 			groups = g_slist_append(groups, (char*)gname);
 		buddies = g_slist_remove(buddies, b);
 	}
+
+	purple_debug_info("jabber", "jabber_roster_group_change(): Moving %s from %s to %s",
+				name, old_group, new_group);
+
 	jabber_roster_update(gc->proto_data, name, groups);
 	g_slist_free(groups);
 }
@@ -428,6 +444,9 @@
 			buddies = g_slist_remove(buddies, tmpbuddy);
 		}
 
+		purple_debug_info("jabber", "jabber_roster_remove_buddy(): Removing %s",
+				buddy->name);
+
 		jabber_roster_update(gc->proto_data, name, groups);
 		g_slist_free(groups);
 	} else {