Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
7894:8a9f0754f0be | 7895:ddd80ffd3815 |
---|---|
237 | 237 |
238 muc = TRUE; | 238 muc = TRUE; |
239 if((z = xmlnode_get_child(y, "status"))) { | 239 if((z = xmlnode_get_child(y, "status"))) { |
240 const char *code = xmlnode_get_attrib(z, "code"); | 240 const char *code = xmlnode_get_attrib(z, "code"); |
241 if(code && !strcmp(code, "201")) { | 241 if(code && !strcmp(code, "201")) { |
242 /* we created the room. for now, we'll make it | 242 chat = jabber_chat_find(js, jid->node, jid->domain); |
243 * an instant room. XXX: allow fancy room creation */ | 243 /* XXX: finish this |
244 JabberIq *iq = jabber_iq_new_query(js, JABBER_IQ_SET, | 244 gaim_request_action(js->gc, _("Create New Room"), |
245 "http://jabber.org/protocol/muc#owner"); | 245 _("Create New Room"), |
246 xmlnode *query = xmlnode_get_child(iq->node, "query"); | 246 _("You are creating a new room. Would you like to " |
247 xmlnode *x = xmlnode_new_child(query, "x"); | 247 "configure it, or accept the default settings?"), |
248 char *room_jid = g_strdup_printf("%s@%s", jid->node, | 248 1, chat, 2, _("Configure Room"), |
249 jid->domain); | 249 G_CALLBACK(jabber_chat_start_room_configure), |
250 | 250 _("Accept Defaults"), |
251 xmlnode_set_attrib(iq->node, "to", room_jid); | 251 G_CALLBACK(jabber_chat_create_instant_room)); |
252 xmlnode_set_attrib(x, "xmlns", "jabber:x:data"); | 252 */ |
253 xmlnode_set_attrib(x, "type", "submit"); | 253 jabber_chat_create_instant_room(chat); |
254 | |
255 jabber_iq_send(iq); | |
256 | |
257 g_free(room_jid); | |
258 } | 254 } |
259 } | 255 } |
260 } | 256 } |
261 } | 257 } |
262 } | 258 } |