From: Nathan W. <fac...@us...> - 2004-01-02 08:16:06
|
Update of /cvsroot/gaim/gaim/src/protocols/jabber In directory sc8-pr-cvs1:/tmp/cvs-serv21617/src/protocols/jabber Modified Files: presence.c Log Message: 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 Index: presence.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/jabber/presence.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -d -p -r1.30 -r1.31 --- presence.c 2 Jan 2004 07:34:26 -0000 1.30 +++ presence.c 2 Jan 2004 08:15:52 -0000 1.31 @@ -309,6 +309,8 @@ void jabber_presence_parse(JabberStream 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 @@ void jabber_presence_parse(JabberStream } } } 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); |