| 90 if (logs == NULL) |
90 if (logs == NULL) |
| 91 logs = gaim_log_get_logs(GAIM_LOG_IM, name, account); |
91 logs = gaim_log_get_logs(GAIM_LOG_IM, name, account); |
| 92 else |
92 else |
| 93 logs = g_list_sort(logs, gaim_log_compare); |
93 logs = g_list_sort(logs, gaim_log_compare); |
| 94 } |
94 } |
| 95 else if (convtype == GAIM_CONV_CHAT) |
95 else if (convtype == GAIM_CONV_TYPE_CHAT) |
| 96 { |
96 { |
| 97 /* If we're not logging, don't show anything. |
97 /* If we're not logging, don't show anything. |
| 98 * Otherwise, we might show a very old log. */ |
98 * Otherwise, we might show a very old log. */ |
| 99 if (!gaim_prefs_get_bool("/core/logging/log_chats")) |
99 if (!gaim_prefs_get_bool("/core/logging/log_chats")) |
| 100 return; |
100 return; |