comparison src/protocols/jabber/presence.c @ 7630:2df4d470c12a

[gaim-migrate @ 8254] i heart jabber committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 25 Nov 2003 06:56:44 +0000
parents 778624d3fced
children 4168b8881746
comparison
equal deleted inserted replaced
7629:778624d3fced 7630:2df4d470c12a
240 /* we created the room. for now, we'll make it 240 /* we created the room. for now, we'll make it
241 * an instant room. XXX: allow fancy room creation */ 241 * an instant room. XXX: allow fancy room creation */
242 JabberIq *iq = jabber_iq_new_query(js, JABBER_IQ_SET, 242 JabberIq *iq = jabber_iq_new_query(js, JABBER_IQ_SET,
243 "http://jabber.org/protocol/muc#owner"); 243 "http://jabber.org/protocol/muc#owner");
244 xmlnode *query = xmlnode_get_child(iq->node, "query"); 244 xmlnode *query = xmlnode_get_child(iq->node, "query");
245
246 xmlnode *x = xmlnode_new_child(query, "x"); 245 xmlnode *x = xmlnode_new_child(query, "x");
246 char *room_jid = g_strdup_printf("%s@%s", jid->node,
247 jid->domain);
248
249 xmlnode_set_attrib(iq->node, "to", room_jid);
247 xmlnode_set_attrib(x, "xmlns", "jabber:x:data"); 250 xmlnode_set_attrib(x, "xmlns", "jabber:x:data");
248 xmlnode_set_attrib(x, "type", "submit"); 251 xmlnode_set_attrib(x, "type", "submit");
249 252
250 jabber_iq_send(iq); 253 jabber_iq_send(iq);
254
255 g_free(room_jid);
251 } 256 }
252 } 257 }
253 } 258 }
254 } 259 }
255 } 260 }