Mercurial > pidgin
diff src/protocols/jabber/jabber.c @ 5068:b37d7d09ec83
[gaim-migrate @ 5419]
logout icons
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 07 Apr 2003 23:17:27 +0000 |
parents | fb232515839a |
children | 89c0c811befa |
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c Mon Apr 07 20:08:57 2003 +0000 +++ b/src/protocols/jabber/jabber.c Mon Apr 07 23:17:27 2003 +0000 @@ -1784,13 +1784,14 @@ int signon = b->signon; /* + * FIXME: this ugly hack is no longer needed * seems rude, but it seems to be the only way... */ gaim_blist_remove_buddy(b); b = gaim_buddy_new(GJ_GC(gjc)->account, buddyname, name); gaim_blist_add_buddy(b, gaim_find_group(groupname), NULL); gaim_blist_save(); - if(present) { + if(present > 0) { serv_got_update(GJ_GC(gjc), buddyname, 1, 0, signon, idle, uc); } @@ -2789,7 +2790,7 @@ } } - if (b->present == 0) { + if (b->present == GAIM_BUDDY_OFFLINE) { *se = "offline"; } else { switch (b->uc) {