| 7191 return; |
7191 return; |
| 7192 |
7192 |
| 7193 if(strcmp(purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/im/hide_new"), "away")==0) |
7193 if(strcmp(purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/im/hide_new"), "away")==0) |
| 7194 when_away = TRUE; |
7194 when_away = TRUE; |
| 7195 |
7195 |
| 7196 while ((l = hidden_convwin->gtkconvs) != NULL) |
7196 for (l = hidden_convwin->gtkconvs; l; ) |
| 7197 { |
7197 { |
| 7198 gtkconv = l->data; |
7198 gtkconv = l->data; |
| |
7199 l = l->next; |
| 7199 |
7200 |
| 7200 conv = gtkconv->active_conv; |
7201 conv = gtkconv->active_conv; |
| 7201 |
7202 |
| 7202 if(when_away && !purple_status_is_available( |
7203 if (conv->type == PURPLE_CONV_TYPE_CHAT || |
| |
7204 gtkconv->unseen_count == 0 || |
| |
7205 (when_away && !purple_status_is_available( |
| 7203 purple_account_get_active_status( |
7206 purple_account_get_active_status( |
| 7204 purple_conversation_get_account(conv)))) |
7207 purple_conversation_get_account(conv))))) |
| 7205 continue; |
7208 continue; |
| 7206 |
7209 |
| 7207 pidgin_conv_window_remove_gtkconv(hidden_convwin, gtkconv); |
7210 pidgin_conv_window_remove_gtkconv(hidden_convwin, gtkconv); |
| 7208 pidgin_conv_placement_place(gtkconv); |
7211 pidgin_conv_placement_place(gtkconv); |
| 7209 } |
7212 } |