| 5133 static void |
5133 static void |
| 5134 received_im_msg_cb(PurpleAccount *account, char *sender, char *message, |
5134 received_im_msg_cb(PurpleAccount *account, char *sender, char *message, |
| 5135 PurpleConversation *conv, PurpleMessageFlags flags) |
5135 PurpleConversation *conv, PurpleMessageFlags flags) |
| 5136 { |
5136 { |
| 5137 PurpleConversationUiOps *ui_ops = pidgin_conversations_get_conv_ui_ops(); |
5137 PurpleConversationUiOps *ui_ops = pidgin_conversations_get_conv_ui_ops(); |
| 5138 if (conv != NULL) |
|
| 5139 return; |
|
| 5140 |
5138 |
| 5141 /* create hidden conv if hide_new pref is always */ |
5139 /* create hidden conv if hide_new pref is always */ |
| 5142 /* or if hide_new pref is away and account is away */ |
5140 /* or if hide_new pref is away and account is away */ |
| 5143 if ((strcmp(purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/im/hide_new"), "always") == 0) || |
5141 if ((strcmp(purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/im/hide_new"), "always") == 0) || |
| 5144 (strcmp(purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/im/hide_new"), "away") == 0 && |
5142 (strcmp(purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/im/hide_new"), "away") == 0 && |