# HG changeset patch # User Luke Schierer # Date 1111756396 0 # Node ID de26e6e198a46833f555af00ea260e44457e2520 # Parent 811f12c8a5e47ba79e71c1c1fa3d999f623b32f4 [gaim-migrate @ 12325] " With the status rewrite we don't need some of these old legacy members in the buddy structure. I'm trying to clean them up by novell hasn't been ported to the new status, and I have nfi what I'm doing with novell.. So here's jabber." -- grim committer: Tailor Script diff -r 811f12c8a5e4 -r de26e6e198a4 src/protocols/jabber/roster.c --- a/src/protocols/jabber/roster.c Fri Mar 25 13:12:18 2005 +0000 +++ b/src/protocols/jabber/roster.c Fri Mar 25 13:13:16 2005 +0000 @@ -54,8 +54,8 @@ static void add_gaim_buddies_in_groups(JabberStream *js, const char *jid, const char *alias, GSList *groups) { + GaimPresence *presence = NULL; GSList *buddies, *g2, *l; - int present =0; buddies = gaim_find_buddies(js->gc->account, jid); @@ -69,7 +69,7 @@ } if(buddies) { - present = ((GaimBuddy*)buddies->data)->present; + presence = gaim_buddy_get_presence((GaimBuddy*)buddies->data); } while(buddies) { @@ -103,7 +103,8 @@ } /* XXX: this hack may need to change */ - b->present = present; + /* Is this change better? */ + b->presence = presence; gaim_blist_add_buddy(b, NULL, g, NULL); gaim_blist_alias_buddy(b, alias);