| 110 } |
111 } |
| 111 |
112 |
| 112 if (logs == NULL) |
113 if (logs == NULL) |
| 113 return; |
114 return; |
| 114 |
115 |
| |
116 mflag = GAIM_MESSAGE_NO_LOG | GAIM_MESSAGE_SYSTEM | GAIM_MESSAGE_DELAYED; |
| 115 history = gaim_log_read((GaimLog*)logs->data, &flags); |
117 history = gaim_log_read((GaimLog*)logs->data, &flags); |
| 116 |
118 |
| 117 header = g_strdup_printf(_("<b>Conversation with %s on %s:</b><br>"), alias, |
119 header = g_strdup_printf(_("<b>Conversation with %s on %s:</b><br>"), alias, |
| 118 gaim_date_format_full(localtime(&((GaimLog *)logs->data)->time))); |
120 gaim_date_format_full(localtime(&((GaimLog *)logs->data)->time))); |
| 119 gaim_conversation_write(c, "", header, GAIM_MESSAGE_NO_LOG, time(NULL)); |
121 gaim_conversation_write(c, "", header, mflag, time(NULL)); |
| 120 g_free(header); |
122 g_free(header); |
| 121 |
123 |
| 122 g_strchomp(history); |
124 g_strchomp(history); |
| 123 gaim_conversation_write(c, "", history, GAIM_MESSAGE_NO_LOG, time(NULL)); |
125 gaim_conversation_write(c, "", history, mflag, time(NULL)); |
| 124 g_free(history); |
126 g_free(history); |
| 125 |
127 |
| 126 gaim_conversation_write(c, "", "\n---------------\n", GAIM_MESSAGE_NO_LOG, time(NULL)); |
128 gaim_conversation_write(c, "", "<hr>", mflag, time(NULL)); |
| 127 |
129 |
| 128 g_list_foreach(logs, (GFunc)gaim_log_free, NULL); |
130 g_list_foreach(logs, (GFunc)gaim_log_free, NULL); |
| 129 g_list_free(logs); |
131 g_list_free(logs); |
| 130 } |
132 } |
| 131 |
133 |