Mercurial > pidgin.yaz
diff src/protocols/jabber/presence.c @ 7895:ddd80ffd3815
[gaim-migrate @ 8555]
wanted to get this committed before I went home
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Fri, 19 Dec 2003 08:33:03 +0000 |
parents | 4ed0c93816f6 |
children | e87e7d9d0132 |
line wrap: on
line diff
--- a/src/protocols/jabber/presence.c Fri Dec 19 08:31:06 2003 +0000 +++ b/src/protocols/jabber/presence.c Fri Dec 19 08:33:03 2003 +0000 @@ -239,22 +239,18 @@ if((z = xmlnode_get_child(y, "status"))) { const char *code = xmlnode_get_attrib(z, "code"); if(code && !strcmp(code, "201")) { - /* we created the room. for now, we'll make it - * an instant room. XXX: allow fancy room creation */ - JabberIq *iq = jabber_iq_new_query(js, JABBER_IQ_SET, - "http://jabber.org/protocol/muc#owner"); - xmlnode *query = xmlnode_get_child(iq->node, "query"); - xmlnode *x = xmlnode_new_child(query, "x"); - char *room_jid = g_strdup_printf("%s@%s", jid->node, - jid->domain); - - xmlnode_set_attrib(iq->node, "to", room_jid); - xmlnode_set_attrib(x, "xmlns", "jabber:x:data"); - xmlnode_set_attrib(x, "type", "submit"); - - jabber_iq_send(iq); - - g_free(room_jid); + chat = jabber_chat_find(js, jid->node, jid->domain); + /* XXX: finish this + gaim_request_action(js->gc, _("Create New Room"), + _("Create New Room"), + _("You are creating a new room. Would you like to " + "configure it, or accept the default settings?"), + 1, chat, 2, _("Configure Room"), + G_CALLBACK(jabber_chat_start_room_configure), + _("Accept Defaults"), + G_CALLBACK(jabber_chat_create_instant_room)); + */ + jabber_chat_create_instant_room(chat); } } }