| 2252 |
2252 |
| 2253 chat = gaim_blist_find_chat(gaim_conversation_get_account(conv), |
2253 chat = gaim_blist_find_chat(gaim_conversation_get_account(conv), |
| 2254 gaim_conversation_get_name(conv)); |
2254 gaim_conversation_get_name(conv)); |
| 2255 |
2255 |
| 2256 if (chat != NULL) |
2256 if (chat != NULL) |
| 2257 group = gaim_blist_chat_get_group(chat); |
2257 group = gaim_chat_get_group(chat); |
| 2258 |
2258 |
| 2259 /* Go through the list of chats and find one with this group. */ |
2259 /* Go through the list of chats and find one with this group. */ |
| 2260 for (wins = gaim_get_windows(); wins != NULL; wins = wins->next) { |
2260 for (wins = gaim_get_windows(); wins != NULL; wins = wins->next) { |
| 2261 GaimConvWindow *win2; |
2261 GaimConvWindow *win2; |
| 2262 GaimConversation *conv2; |
2262 GaimConversation *conv2; |
| 2274 chat2 = gaim_blist_find_chat( |
2274 chat2 = gaim_blist_find_chat( |
| 2275 gaim_conversation_get_account(conv2), |
2275 gaim_conversation_get_account(conv2), |
| 2276 gaim_conversation_get_name(conv2)); |
2276 gaim_conversation_get_name(conv2)); |
| 2277 |
2277 |
| 2278 if (chat2 != NULL) |
2278 if (chat2 != NULL) |
| 2279 group2 = gaim_blist_chat_get_group(chat2); |
2279 group2 = gaim_chat_get_group(chat2); |
| 2280 |
2280 |
| 2281 if (group == group2) { |
2281 if (group == group2) { |
| 2282 gaim_conv_window_add_conversation(win2, conv); |
2282 gaim_conv_window_add_conversation(win2, conv); |
| 2283 |
2283 |
| 2284 return; |
2284 return; |