changeset 7488:c42d1532faab

[gaim-migrate @ 8101] show dupilcate jabber buddies as actually online. maybe something like this belongs in the core, i dunno. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 12 Nov 2003 23:42:43 +0000
parents 9e371bf9bc22
children 8f05bdc08faf
files src/protocols/jabber/roster.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/jabber/roster.c	Wed Nov 12 12:50:29 2003 +0000
+++ b/src/protocols/jabber/roster.c	Wed Nov 12 23:42:43 2003 +0000
@@ -251,6 +251,7 @@
 	char *who;
 	GSList *groups = NULL;
 	JabberBuddy *jb;
+	JabberBuddyResource *jbr;
 
 	if(!js->roster_parsed)
 		return;
@@ -268,6 +269,8 @@
 
 	if(!jb || !(jb->subscription & JABBER_SUB_TO))
 		jabber_presence_subscription_set(js, who, "subscribe");
+	else if((jbr =jabber_buddy_find_resource(jb, NULL)))
+		serv_got_update(gc, who, 1, 0, 0, 0, jbr->state);
 
 	g_free(who);
 }