| 304 continue; |
304 continue; |
| 305 |
305 |
| 306 chat = find_chat_for_conversation(conv); |
306 chat = find_chat_for_conversation(conv); |
| 307 if (chat == NULL) { |
307 if (chat == NULL) { |
| 308 PurpleProtocol *protocol = purple_connection_get_protocol(gc); |
308 PurpleProtocol *protocol = purple_connection_get_protocol(gc); |
| 309 comps = purple_protocol_chat_iface_info_defaults(protocol, gc, |
309 comps = purple_protocol_chat_info_defaults(PURPLE_PROTOCOL_CHAT(protocol), gc, |
| 310 purple_conversation_get_name(conv)); |
310 purple_conversation_get_name(conv)); |
| 311 } else { |
311 } else { |
| 312 comps = purple_chat_get_components(chat); |
312 comps = purple_chat_get_components(chat); |
| 313 } |
313 } |
| 314 purple_serv_join_chat(gc, comps); |
314 purple_serv_join_chat(gc, comps); |
| 656 |
656 |
| 657 name = gnt_tree_get_selection_data(GNT_TREE(widget)); |
657 name = gnt_tree_get_selection_data(GNT_TREE(widget)); |
| 658 |
658 |
| 659 protocol = purple_connection_get_protocol(gc); |
659 protocol = purple_connection_get_protocol(gc); |
| 660 if (protocol) |
660 if (protocol) |
| 661 realname = purple_protocol_chat_iface_get_user_real_name(protocol, gc, |
661 realname = purple_protocol_chat_get_user_real_name(PURPLE_PROTOCOL_CHAT(protocol), gc, |
| 662 purple_chat_conversation_get_id( |
662 purple_chat_conversation_get_id( |
| 663 PURPLE_CHAT_CONVERSATION(fc->active_conv)), name); |
663 PURPLE_CHAT_CONVERSATION(fc->active_conv)), name); |
| 664 |
664 |
| 665 purple_im_conversation_new(account, realname ? realname : name); |
665 purple_im_conversation_new(account, realname ? realname : name); |
| 666 g_free(realname); |
666 g_free(realname); |