# HG changeset patch # User Nathan Walp # Date 1073031352 0 # Node ID aa99b8390092991af8f93436607b775aa083fb41 # Parent ac01b7d67ff9dec66a585965caee275c3b1dd0ad [gaim-migrate @ 8650] it turns out i actually made it easy on myself these couple lines let us track the states of people in a jabber chat room committer: Tailor Script diff -r ac01b7d67ff9 -r aa99b8390092 src/protocols/jabber/presence.c --- a/src/protocols/jabber/presence.c Fri Jan 02 07:34:26 2004 +0000 +++ b/src/protocols/jabber/presence.c Fri Jan 02 08:15:52 2004 +0000 @@ -309,6 +309,8 @@ if(type && !strcmp(type, "unavailable")) { gboolean nick_change = FALSE; + + jabber_buddy_remove_resource(jb, jid->resource); if(chat->muc) { xmlnode *x; for(x = packet->child; x; x = x->next) { @@ -346,6 +348,9 @@ } } } else { + jabber_buddy_track_resource(jb, jid->resource, priority, state, + status); + if(!jabber_chat_find_buddy(chat->conv, jid->resource)) gaim_conv_chat_add_user(GAIM_CONV_CHAT(chat->conv), jid->resource, real_jid);