| 1432 written += fprintf(data->file, "<font size=\"2\">(%s)</font> %s<br/>\n", date, msg_fixed); |
1435 written += fprintf(data->file, "<font size=\"2\">(%s)</font> %s<br/>\n", date, msg_fixed); |
| 1433 else if (type & PURPLE_MESSAGE_ERROR) |
1436 else if (type & PURPLE_MESSAGE_ERROR) |
| 1434 written += fprintf(data->file, "<font color=\"#FF0000\"><font size=\"2\">(%s)</font><b> %s</b></font><br/>\n", date, msg_fixed); |
1437 written += fprintf(data->file, "<font color=\"#FF0000\"><font size=\"2\">(%s)</font><b> %s</b></font><br/>\n", date, msg_fixed); |
| 1435 else if (type & PURPLE_MESSAGE_WHISPER) |
1438 else if (type & PURPLE_MESSAGE_WHISPER) |
| 1436 written += fprintf(data->file, "<font color=\"#6C2585\"><font size=\"2\">(%s)</font><b> %s:</b></font> %s<br/>\n", |
1439 written += fprintf(data->file, "<font color=\"#6C2585\"><font size=\"2\">(%s)</font><b> %s:</b></font> %s<br/>\n", |
| 1437 date, from, msg_fixed); |
1440 date, escaped_from, msg_fixed); |
| 1438 else if (type & PURPLE_MESSAGE_AUTO_RESP) { |
1441 else if (type & PURPLE_MESSAGE_AUTO_RESP) { |
| 1439 if (type & PURPLE_MESSAGE_SEND) |
1442 if (type & PURPLE_MESSAGE_SEND) |
| 1440 written += fprintf(data->file, _("<font color=\"#16569E\"><font size=\"2\">(%s)</font> <b>%s <AUTO-REPLY>:</b></font> %s<br/>\n"), date, from, msg_fixed); |
1443 written += fprintf(data->file, _("<font color=\"#16569E\"><font size=\"2\">(%s)</font> <b>%s <AUTO-REPLY>:</b></font> %s<br/>\n"), date, escaped_from, msg_fixed); |
| 1441 else if (type & PURPLE_MESSAGE_RECV) |
1444 else if (type & PURPLE_MESSAGE_RECV) |
| 1442 written += fprintf(data->file, _("<font color=\"#A82F2F\"><font size=\"2\">(%s)</font> <b>%s <AUTO-REPLY>:</b></font> %s<br/>\n"), date, from, msg_fixed); |
1445 written += fprintf(data->file, _("<font color=\"#A82F2F\"><font size=\"2\">(%s)</font> <b>%s <AUTO-REPLY>:</b></font> %s<br/>\n"), date, escaped_from, msg_fixed); |
| 1443 } else if (type & PURPLE_MESSAGE_RECV) { |
1446 } else if (type & PURPLE_MESSAGE_RECV) { |
| 1444 if(purple_message_meify(msg_fixed, -1)) |
1447 if(purple_message_meify(msg_fixed, -1)) |
| 1445 written += fprintf(data->file, "<font color=\"#062585\"><font size=\"2\">(%s)</font> <b>***%s</b></font> %s<br/>\n", |
1448 written += fprintf(data->file, "<font color=\"#062585\"><font size=\"2\">(%s)</font> <b>***%s</b></font> %s<br/>\n", |
| 1446 date, from, msg_fixed); |
1449 date, escaped_from, msg_fixed); |
| 1447 else |
1450 else |
| 1448 written += fprintf(data->file, "<font color=\"#A82F2F\"><font size=\"2\">(%s)</font> <b>%s:</b></font> %s<br/>\n", |
1451 written += fprintf(data->file, "<font color=\"#A82F2F\"><font size=\"2\">(%s)</font> <b>%s:</b></font> %s<br/>\n", |
| 1449 date, from, msg_fixed); |
1452 date, escaped_from, msg_fixed); |
| 1450 } else if (type & PURPLE_MESSAGE_SEND) { |
1453 } else if (type & PURPLE_MESSAGE_SEND) { |
| 1451 if(purple_message_meify(msg_fixed, -1)) |
1454 if(purple_message_meify(msg_fixed, -1)) |
| 1452 written += fprintf(data->file, "<font color=\"#062585\"><font size=\"2\">(%s)</font> <b>***%s</b></font> %s<br/>\n", |
1455 written += fprintf(data->file, "<font color=\"#062585\"><font size=\"2\">(%s)</font> <b>***%s</b></font> %s<br/>\n", |
| 1453 date, from, msg_fixed); |
1456 date, escaped_from, msg_fixed); |
| 1454 else |
1457 else |
| 1455 written += fprintf(data->file, "<font color=\"#16569E\"><font size=\"2\">(%s)</font> <b>%s:</b></font> %s<br/>\n", |
1458 written += fprintf(data->file, "<font color=\"#16569E\"><font size=\"2\">(%s)</font> <b>%s:</b></font> %s<br/>\n", |
| 1456 date, from, msg_fixed); |
1459 date, escaped_from, msg_fixed); |
| 1457 } else { |
1460 } else { |
| 1458 purple_debug_error("log", "Unhandled message type.\n"); |
1461 purple_debug_error("log", "Unhandled message type.\n"); |
| 1459 written += fprintf(data->file, "<font size=\"2\">(%s)</font><b> %s:</b></font> %s<br/>\n", |
1462 written += fprintf(data->file, "<font size=\"2\">(%s)</font><b> %s:</b></font> %s<br/>\n", |
| 1460 date, from, msg_fixed); |
1463 date, escaped_from, msg_fixed); |
| 1461 } |
1464 } |
| 1462 } |
1465 } |
| 1463 g_free(date); |
1466 g_free(date); |
| 1464 g_free(msg_fixed); |
1467 g_free(msg_fixed); |
| |
1468 g_free(escaped_from); |
| 1465 fflush(data->file); |
1469 fflush(data->file); |
| 1466 |
1470 |
| 1467 return written; |
1471 return written; |
| 1468 } |
1472 } |
| 1469 |
1473 |