pidgin: a09da5a6: Pluck Adium's roster debugging from 8672...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Wed Jun 3 11:55:42 EDT 2009


-----------------------------------------------------------------
Revision: a09da5a6a55e5cc2b8ae6417703c39e4de4ce470
Ancestor: 2d0f4c0dbe3915bdf64596cc77b4346de5be127b
Author: darkrain42 at pidgin.im
Date: 2009-06-03T15:33:55
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/a09da5a6a55e5cc2b8ae6417703c39e4de4ce470

Modified files:
        libpurple/protocols/jabber/roster.c

ChangeLog: 

Pluck Adium's roster debugging from 86720de21a854aa

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/roster.c	4fbbc3b31876c277775948994a1e2bb73f1ee81e
+++ libpurple/protocols/jabber/roster.c	c74f6ba37b3c8508de80cb59308eeb0a4d7e1416
@@ -283,6 +283,11 @@ static void jabber_roster_update(JabberS
 
 	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 @@ static void jabber_roster_update(JabberS
 			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 @@ void jabber_roster_alias_change(PurpleCo
 	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 @@ void jabber_roster_group_change(PurpleCo
 			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 @@ void jabber_roster_remove_buddy(PurpleCo
 			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 {


More information about the Commits mailing list