# HG changeset patch # User Nathan Walp # Date 1064939224 0 # Node ID 82e980962926fdeb1b5cb95bef72d94ab4b1e8d3 # Parent 1350352f58186317a7dfb5ca0bcea9dc10678309 [gaim-migrate @ 7638] chat fixes (let you leave chats you join other than the first one) committer: Tailor Script diff -r 1350352f5818 -r 82e980962926 src/protocols/jabber/chat.c --- a/src/protocols/jabber/chat.c Tue Sep 30 14:37:05 2003 +0000 +++ b/src/protocols/jabber/chat.c Tue Sep 30 16:27:04 2003 +0000 @@ -24,6 +24,7 @@ #include "chat.h" #include "message.h" +#include "presence.h" GList *jabber_chat_info(GaimConnection *gc) { @@ -91,6 +92,7 @@ { JabberChat *chat; struct _find_by_id_data *fbid = g_new0(struct _find_by_id_data, 1); + fbid->id = id; g_hash_table_foreach(js->chats, find_by_id_foreach_cb, fbid); chat = fbid->chat; g_free(fbid); @@ -183,7 +185,7 @@ g_hash_table_insert(js->chats, room_jid, chat); - presence = xmlnode_new("presence"); + presence = jabber_presence_create(gc->away_state, gc->away); full_jid = g_strdup_printf("%s/%s", room_jid, handle); xmlnode_set_attrib(presence, "to", full_jid); g_free(full_jid);