# HG changeset patch # User Nathan Walp # Date 1141719547 0 # Node ID 14c0fb6c985d6cd560227e59c2c1d7e254dbd6a0 # Parent d973e6ba65ac77f62bebc7ca718bf2fceb103f8c [gaim-migrate @ 15819] CID 41 committer: Tailor Script diff -r d973e6ba65ac -r 14c0fb6c985d src/protocols/jabber/presence.c --- 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"))) {