changeset 7973:aa99b8390092

[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 <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 02 Jan 2004 08:15:52 +0000
parents ac01b7d67ff9
children 415df6fa0395
files src/protocols/jabber/presence.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);