libpurple/protocols/jabber/presence.c

changeset 21171
c6934783d152
parent 21162
8359073125ba
child 21174
8ba833993a11
child 21220
3bb27fe7d046
equal deleted inserted replaced
21170:dca0f95d34ec 21171:c6934783d152
498 const char *code = xmlnode_get_attrib(z, "code"); 498 const char *code = xmlnode_get_attrib(z, "code");
499 if(code && !strcmp(code, "201")) { 499 if(code && !strcmp(code, "201")) {
500 if((chat = jabber_chat_find(js, jid->node, jid->domain))) { 500 if((chat = jabber_chat_find(js, jid->node, jid->domain))) {
501 chat->config_dialog_type = PURPLE_REQUEST_ACTION; 501 chat->config_dialog_type = PURPLE_REQUEST_ACTION;
502 chat->config_dialog_handle = 502 chat->config_dialog_handle =
503 purple_request_action_with_hint(js->gc, 503 purple_request_action(js->gc,
504 _("Create New Room"), 504 _("Create New Room"),
505 _("Create New Room"), 505 _("Create New Room"),
506 _("You are creating a new room. Would" 506 _("You are creating a new room. Would"
507 " you like to configure it, or" 507 " you like to configure it, or"
508 " accept the default settings?"), 508 " accept the default settings?"),
509 /* Default Action */ 1, 509 /* Default Action */ 1,
510 purple_connection_get_account(js->gc), NULL, chat->conv, 510 purple_connection_get_account(js->gc), NULL, chat->conv,
511 "chat", chat, 2, 511 chat, 2,
512 _("_Configure Room"), G_CALLBACK(jabber_chat_request_room_configure), 512 _("_Configure Room"), G_CALLBACK(jabber_chat_request_room_configure),
513 _("_Accept Defaults"), G_CALLBACK(jabber_chat_create_instant_room)); 513 _("_Accept Defaults"), G_CALLBACK(jabber_chat_create_instant_room));
514 } 514 }
515 } else if(code && !strcmp(code, "210")) { 515 } else if(code && !strcmp(code, "210")) {
516 /* server rewrote room-nick */ 516 /* server rewrote room-nick */

mercurial