Mercurial > pidgin
changeset 13444:14c0fb6c985d
[gaim-migrate @ 15819]
CID 41
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 07 Mar 2006 08:19:07 +0000 |
parents | d973e6ba65ac |
children | 96a6285b9879 |
files | src/protocols/jabber/presence.c |
diffstat | 1 files changed, 14 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/jabber/presence.c Tue Mar 07 08:13:37 2006 +0000 +++ b/src/protocols/jabber/presence.c Tue Mar 07 08:19:07 2006 +0000 @@ -374,17 +374,20 @@ if((z = xmlnode_get_child(y, "status"))) { const char *code = xmlnode_get_attrib(z, "code"); if(code && !strcmp(code, "201")) { - chat = jabber_chat_find(js, jid->node, jid->domain); - chat->config_dialog_type = GAIM_REQUEST_ACTION; - chat->config_dialog_handle = - 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_request_room_configure), - _("_Accept Defaults"), - G_CALLBACK(jabber_chat_create_instant_room)); + if((chat = jabber_chat_find(js, jid->node, jid->domain))) { + chat->config_dialog_type = GAIM_REQUEST_ACTION; + chat->config_dialog_handle = + 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_request_room_configure), + _("_Accept Defaults"), + G_CALLBACK(jabber_chat_create_instant_room)); + } } } if((z = xmlnode_get_child(y, "item"))) {