| 7271 return; |
7271 return; |
| 7272 |
7272 |
| 7273 if(strcmp(purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/im/hide_new"), "away")==0) |
7273 if(strcmp(purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/im/hide_new"), "away")==0) |
| 7274 when_away = TRUE; |
7274 when_away = TRUE; |
| 7275 |
7275 |
| 7276 while ((l = hidden_convwin->gtkconvs) != NULL) |
7276 for (l = hidden_convwin->gtkconvs; l; ) |
| 7277 { |
7277 { |
| 7278 gtkconv = l->data; |
7278 gtkconv = l->data; |
| |
7279 l = l->next; |
| 7279 |
7280 |
| 7280 conv = gtkconv->active_conv; |
7281 conv = gtkconv->active_conv; |
| 7281 |
7282 |
| 7282 if(when_away && !purple_status_is_available( |
7283 if (conv->type == PURPLE_CONV_TYPE_CHAT || |
| |
7284 gtkconv->unseen_count == 0 || |
| |
7285 (when_away && !purple_status_is_available( |
| 7283 purple_account_get_active_status( |
7286 purple_account_get_active_status( |
| 7284 purple_conversation_get_account(conv)))) |
7287 purple_conversation_get_account(conv))))) |
| 7285 continue; |
7288 continue; |
| 7286 |
7289 |
| 7287 pidgin_conv_window_remove_gtkconv(hidden_convwin, gtkconv); |
7290 pidgin_conv_window_remove_gtkconv(hidden_convwin, gtkconv); |
| 7288 pidgin_conv_placement_place(gtkconv); |
7291 pidgin_conv_placement_place(gtkconv); |
| 7289 } |
7292 } |