Mercurial > pidgin.yaz
changeset 10725:de26e6e198a4
[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 <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Fri, 25 Mar 2005 13:13:16 +0000 |
parents | 811f12c8a5e4 |
children | 00e3dc1a0206 |
files | src/protocols/jabber/roster.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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);