diff src/protocols/jabber/roster.c @ 7425:85cd2e71bff7

[gaim-migrate @ 8028] syncing my jabber changes, and disabling the half-implemented file sending stuff. I don't want that sneaking into a release. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 04 Nov 2003 19:18:38 +0000
parents 5b408a3fc6f4
children 6ea4a49b4b51
line wrap: on
line diff
--- a/src/protocols/jabber/roster.c	Tue Nov 04 01:34:46 2003 +0000
+++ b/src/protocols/jabber/roster.c	Tue Nov 04 19:18:38 2003 +0000
@@ -259,21 +259,26 @@
 {
 	JabberStream *js = gc->proto_data;
 	char *who;
-	GSList *buddies;
+	GSList *groups = NULL;
 	JabberBuddy *jb;
 
 	if(!js->roster_parsed)
 		return;
 
-	who = jabber_get_bare_jid(name);
+	if(!(who = jabber_get_bare_jid(name)))
+		return;
 
-	buddies = gaim_find_buddies(gc->account, who);
+	jb = jabber_buddy_find(js, name, FALSE);
+
+	if(!jb || !(jb->subscription & JABBER_SUB_TO)) {
+		groups = g_slist_append(groups, grp->name);
+	}
 
 	jabber_roster_update(js, who, NULL);
 
-	jb = jabber_buddy_find(js, name, FALSE);
 	if(!jb || !(jb->subscription & JABBER_SUB_TO))
 		jabber_presence_subscription_set(js, who, "subscribe");
+
 	g_free(who);
 }